mirror of
https://github.com/akashrchandran/spotify-lyrics-api.git
synced 2026-04-27 10:05:53 +03:00
[GH-ISSUE #21] CORS Error when fetching #15
Labels
No labels
UPDATES
bug
bug
documentation
enhancement
hacktoberfest
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-lyrics-api#15
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 @LemonProg on GitHub (Aug 18, 2023).
Original GitHub issue: https://github.com/akashrchandran/spotify-lyrics-api/issues/21
Hey, I am using this api in a Node.js website, but when I try to fetch any song, i got this error :
Access to fetch at 'https://spotify-lyric-api.herokuapp.com/?trackid=1GelyurdH5LBWReoScJF59' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.To fix that I tried to use some cors proxy, but there are not stable, so can you please fix the API to allow every origins ? Or if you want, here my production url "https://lemon-typer.onrender.com/", so you can only allow trusted website. Thank you
@akashrchandran commented on GitHub (Aug 18, 2023):
I believe I've resolved the problem. Could you kindly verify it and let me know your feedback?
@LemonProg commented on GitHub (Aug 18, 2023):
I fixed my issue using cors anywhere, but I can tell you if it's working tonight 👍🏻