url-metadata
url-metadata copied to clipboard
CORS Origin Error
access to fetch at url from origin 'http://localhost:19006' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
@Codemaine did you find a solution for this? same problem here.
@bilalrashid300 i tried to fetch from node environtment and it works fine.
The newest version 3.0.1
contains an option to set custom fetch
API mode. Default is cors
but can be overridden as no-cors
, same-origin
, etc.
https://www.npmjs.com/package/url-metadata
I tried the 3 modes, it gave different errors, no metadata
The newest version
3.0.1
contains an option to set customfetch
API mode. Default iscors
but can be overridden asno-cors
,same-origin
, etc.https://www.npmjs.com/package/url-metadata
Seems to work for everyone else. Without additional context (url, error message) this is impossible to troubleshoot.