[GH-ISSUE #112] Access-Control-Allow-Origin #66

Closed
opened 2026-02-27 19:25:52 +03:00 by kerem · 2 comments
Owner

Originally created by @Mackingzie on GitHub (Dec 25, 2017).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/112

Hi!
I'm having an issue with CORS. Using your code .
Issue:
Failed to load https://accounts.spotify.com/authorize/?client_id=[id]&redirect_uri=http%3A%2F%2F[my ip]&response_type=code&scope=user-read-email&state=0: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://[my ip]' is therefore not allowed access.

Originally created by @Mackingzie on GitHub (Dec 25, 2017). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/112 Hi! I'm having an issue with CORS. Using your code . Issue: Failed to load https://accounts.spotify.com/authorize/?client_id=[id]&redirect_uri=http%3A%2F%2F[my ip]&response_type=code&scope=user-read-email&state=0: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://[my ip]' is therefore not allowed access.
kerem closed this issue 2026-02-27 19:25:52 +03:00
Author
Owner

@jwilsson commented on GitHub (Dec 26, 2017):

Hi!
This doesn’t sound like an issue with this library since it never interacts with the browser.

I’m guessing you’ve got some client-side JavaScript which is trying to request the Spotify API and thus failing the CORS Check from your browser.

I’m going to close this since it’s not related to this library, but pleas give me a shout if you think it should be reopened!

<!-- gh-comment-id:353977160 --> @jwilsson commented on GitHub (Dec 26, 2017): Hi! This doesn’t sound like an issue with this library since it never interacts with the browser. I’m guessing you’ve got some client-side JavaScript which is trying to request the Spotify API and thus failing the CORS Check from your browser. I’m going to close this since it’s not related to this library, but pleas give me a shout if you think it should be reopened!
Author
Owner

@andersborgabiro commented on GitHub (Dec 26, 2017):

Do you lack '' (or similar)?

<!-- gh-comment-id:353979558 --> @andersborgabiro commented on GitHub (Dec 26, 2017): Do you lack '<access origin="*" />' (or similar)?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#66
No description provided.