DEV Community

Raaj
Raaj

Posted on

How to Solve Cors Error in Frontend

Cors Error
CORS, also known as Cross-Origin Resource Sharing, is something every web developer has to deal with at some point. Chances are if you are reading this article then you are probably dealing with a CORS error right now. In this article I will tell you what CORS is and how you can fix CORS errors.

Solution
1. Install CORS plugin

Cors Plugin

2.Install Above plugin And Enable CORS plugin

3.plugin interface will be like below image

Enable/ Turn on Cors

Top comments (1)

Collapse
 
ironcladdev profile image
Conner Ow

This is the best way to make stuff work on your machine and not in prod.

I hate to say it, but this is probably one of the dumbest ways to solve this.