Why do we get that silly CORS error?

twitter logo github logo ・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!

twitter logo DISCUSS (1)
markdown guide
 

I hate cors 🤓 sometimes I forget it and I always remember ”I configured CORS” 🤓

Classic DEV Post from Jun 15

Know Not Only Your Weaknesses, But Strengths as Well

Most people want to develop self-awareness. Whether we are managers, entrepreneurs, or aspiring software engineers, the more knowledge we have of our strength and weaknesses, the easier life becomes.

kapeel kokane profile image
Coder by day, Content creator by night, Learner at heart!