url-metadata icon indicating copy to clipboard operation
url-metadata copied to clipboard

CORS Origin Error

Open Codemaine opened this issue 4 years ago • 2 comments

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 avatar Jan 11 '21 23:01 Codemaine

@Codemaine did you find a solution for this? same problem here.

bilalrashid300 avatar Sep 21 '21 05:09 bilalrashid300

@bilalrashid300 i tried to fetch from node environtment and it works fine.

ilhamgunawan avatar Sep 22 '21 04:09 ilhamgunawan

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

laurengarcia avatar Apr 18 '23 19:04 laurengarcia

I tried the 3 modes, it gave different errors, no metadata

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

faithandjs avatar Jun 02 '24 14:06 faithandjs

Seems to work for everyone else. Without additional context (url, error message) this is impossible to troubleshoot.

laurengarcia avatar Jun 03 '24 03:06 laurengarcia