DEV Community

Cover image for CORS Error Solved | JavaScript
Dhairya Shah
Dhairya Shah

Posted on

CORS Error Solved | JavaScript

Hello πŸ‘‹, I am back again with a new article; In this article I will be showing a method to solve CORS Issue

What is CORS?

Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.

How to fix


Make sure to check out the detailed video

Check out Source Code: https://github.com/snowbit-coderboi/CORS-Error-Solution

Thank you for reading!

Top comments (3)

Collapse
 
quocbahuynh profile image
quocbahuynh

It will not working after 5 PM πŸ˜‚. Try using Axios πŸ€ͺ

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Never mind the customer, it only has to function during work hours

Collapse
 
softmarshmallow profile image
UZU, J

cors.sh is also a considerable option