mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #112] Access-Control-Allow-Origin #66
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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!
@andersborgabiro commented on GitHub (Dec 26, 2017):
Do you lack '' (or similar)?