Help Wizard

Step 1


Who Me Too'd this topic

Token API CORS error



I am building a web application consuming Spotify API.

The feature is simply searching for a song which had worked fine until yesterday.


However, all of a sudden I was not able to get a access token from the API server any more - which lead the search request not to work as well. The error message is as below.


Access to XMLHttpRequest at '' from origin 'https://(my site name)' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.


I just cannot understand why this happens although any line of my codes has not been changed at all. Please give me some possible solutions and updates. Thanks.




Who Me Too'd this topic