laurengarcia / url-metadata

NPM module: Request a url and scrape the metadata from its HTML using Node.js or the browser.
https://www.npmjs.com/package/url-metadata
MIT License
166 stars 44 forks source link

I am getting cors error when ever i hit this function #34

Closed salwa1234 closed 3 years ago

salwa1234 commented 3 years ago

Access to fetch at 'https://github.com/salwa1234/meuzmnet-react/pull/829' 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.

laurengarcia commented 3 years ago

CORS policy errors must be fixed on the server/url that you are making requests to. Has nothing to do with this module.

More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS