CORS error

85 views
Skip to first unread message

Tom Downing

unread,
Nov 7, 2022, 12:40:50 PM11/7/22
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


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 AM12/6/22
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:
Reply all
Reply to author
Forward
0 new messages