0
How to solve 'Redirect has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header'?
here is my post , and i got error i have no idea how to solve this https://code.sololearn.com/WkEpzBIDZj9L/?ref=app
1 Answer
+ 1
CORS or Cross Origin Ressource Sharing, is a mechanism that gives a specific origin access to the ressources using additional http headers.
But your page most likely is not allowed by Instagram, why would they. But you could use cors-anywhere to fix this. Because cors-anywhere injects the necessary headers so you request should not be blocked.
For testing purposes you could use the web cors-anywhere demo https://cors-anywhere.herokuapp.com,
but when integrating it on your own webpage you should host the service yourself