DEV Community

loading...
Cover image for Why do we get that silly CORS error?

Why do we get that silly CORS error?

comscience profile image kapeel kokane ・1 min read

Have you ever had that experience where you are working on a frontend project and decide to just fire up a small backend service to support it, or are hitting a public API to fetch some generic data and as soon as you hit your first endpoint, you get that irritating CORS error in the console and you don't know what you did wrong?

I created a short animated video on the same topic trying to explain why we run into such situations often. Do check it out:

Hope that helped, Cheers!

Discussion (1)

Collapse
itachiuchiha profile image
Itachi Uchiha

I hate cors πŸ€“ sometimes I forget it and I always remember ”I configured CORS” πŸ€“

Forem Open with the Forem app