Token API CORS error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
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 'https://accounts.spotify.com/api/token' 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.
Best,
Kim.
- Labels:
-
API Bug
-
API request
-
CORS
-
token
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page