Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Freesound API
Conversations
About
CORS error
85 views
Skip to first unread message
Tom Downing
unread,
Nov 7, 2022, 12:40:50 PM
11/7/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Freesound API
Hi
I'm using the standard apiv2 text search in Javascript, however when using just my Token in the header, I'm getting CORS errors
Query:
https://freesound.org/apiv2/search/text?query=
find:1 Access to fetch at '
https://freesound.org/apiv2/search/text?query=waves
' from origin '
http://localhost:3000
' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
Any ideas?
Fandroide
unread,
Dec 6, 2022, 11:45:28 AM
12/6/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Freesound API
Can you share a bit of your code, please?
Are you using any JS for this? Like
https://github.com/g-roma/freesound.js
?
I recommend you to give it a try to:
https://github.com/amilajack/freesound-client
https://github.com/amilajack/freesound-client-example
Reply all
Reply to author
Forward
0 new messages