Fixing a CORS Error in Rails

Access to fetch at “*” has been blocked by cors policy
Run bundle install in the terminal if this was not included in your gemfile before
Example of an axios request setting withCredentials to true

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The $MILKY PRESALE IS LIVE 🪐

Building Powerful APIs — Developing a successful API Program, Design & Architecture-Part 2

Python 100 projects in 100 days — Learning Journal

How to Build a Hotel Booking Website Using Meta Box — P2 — Booking Page in Backend

What really stifles innovation?

automation with python

How to Get a Computer Vision JOB or FREELANCE with YOLOR PRO

What are the Margins on MongoDB’s SaaS Business?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Allison Anzalone

Allison Anzalone

More from Medium

Bulk DLMS Smart Meter data push to AWS NLB using S3, Lambda & SQS.

How to build a docker multiarch image with buildah

Handling (d.r.y.) click event

Flatiron Phase 1 — CLI Project