goodreads-api-node icon indicating copy to clipboard operation
goodreads-api-node copied to clipboard

How can I add no-cors to header?

Open abhisheksoni27 opened this issue 6 years ago • 2 comments

I am building a web-app with this module, and during development, I get an error saying the fetch couldn't be completed because of CORS.

Is there a way to add "no-cors" to header for development? (So that I can test my code on localhost)

abhisheksoni27 avatar Jun 30 '18 08:06 abhisheksoni27

it should be added in the header of the request: 'Allow-Origin':'*' . try using the cors npm package

zapobyte avatar Jul 31 '18 15:07 zapobyte

I am having the CORS issue as well. Seems to be a known issue w/ the Goodreads API? Not sure if this package is meant to solve for it.

k2-ant avatar Sep 01 '20 01:09 k2-ant