Trouble with CORS policy

Avatar image for whatsup_danger
whatsup_danger

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By whatsup_danger

Hi all, I've just started working with this API and I am having accessing the information. All of my requests have been blocked with the error below. I'm trying to make a simple JS app to retrieve info on different characters. Can anyone recommend a possible solution?

Access to fetch at 'https://comicvine.gamespot.com/api/volumes/?api_key=[key]&format=json&sort=name:asc&filter=name:Walking%20Dead' from origin 'https://comicvine--khoercher.repl.co' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Thanks for your help!

Avatar image for boshuda
boshuda

71

Forum Posts

15787

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I don't know what the CORS policy is or anything, I would personally start by searching for that. But it might also be that you don't have the client defined. Pretty sure the API requires a client. Web browsers include one automatically, but if you're using other tools you might need to define it as part of your setup or send one as part of your request.