DEV Community

Randy Douglas
Randy Douglas

Posted on

CORS issues resolved

If you have run into a CORS issue before, you know that it can be a little frustrating or annoying to resolve. But it is actually a pretty easy issue to fix, I'll show you how.

First, do you have access to the server? If you wrote the code or can change it, then you just have to allow the origin that is sending the request.

See this video to learn how:
Learn CORS in 6 Minutes

If you don't have access to the server, many resources will tell you that you are out of luck. But it turns out that there is a workaround.

CORS issues are blocked by the browser. You can test this by using Postman. If your request works on Postman but not on the browser, this is evidence that the server is sending the response you want, but it is being blocked.

This resource should be helpful in creating a Proxy Server. If you are not familiar with proxy servers, it is basically a server between the your client and the server you are trying to access. It allows you to bypass the browser issue, because you are connecting to a server that you trust.

Top comments (0)