Skip to content Skip to sidebar Skip to footer

What To Do When An Api Doesn't Allow Access-control-allow-origin

I'm driving crazy with all this same-origin-policy thing. When I try to do a request to the Google Maps API I have no problems: var jsonData = $.ajax({ url:'http://maps.goo

Solution 1:

i struggled for way too long with CORS issues caused by the interaction of two projects running locally (Angular App and Node.JS Webservices)

Behold the short easy workaround : Chrome's plugin AllowControlAllowOrigin.

https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi

Just switch the radio button from red to green, and no more blocked request, error or warning ! I hope it'll work with your API, Of course it isn't a permanently solution but that's a great way to avoid loosing time on those anoying recurrent issues.

Post a Comment for "What To Do When An Api Doesn't Allow Access-control-allow-origin"