CORS

CORS

Posted 12 Sep 2019, 23:07:15

I am getting a CORS error artists:1 Access to XMLHttpRequest at 'https://api.setlist.fm/rest/1.0/search/artists?artistName=kiss&p=1&sort=relevance' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

Can anybody help?
Thanks.

Re: CORS

Posted 13 Sep 2019, 6:04:32

CORS has been briefly talked about in this topic. It seems like you're calling the API from your frontend. This isn't allowed since you'd be exposing your private API key to the public.

Post Reply

You're not allowed to do this, please sign in first.