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 43 forks source link

405 Error #38

Closed ulrichbenedikt closed 3 years ago

ulrichbenedikt commented 3 years ago

I am using the url-metadata in my nextjs app at pages/api/getmetadata.js everything works perfect on my localhost, but if i deploy it to vercel its giving me a 405 Error in the console.log Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

is it a CORS problem? or a request header problem? is there a way to modify the request to not get the 405 error? or is the 405 Error not due to those things?

ulrichbenedikt commented 3 years ago

was a mistake on my site, sry.