You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having mostly resolved https://github.com/orgs/clerk/discussions/3076 now (see my answer here), now I am currently facing this error when loading the Next.js locally using the <ClerkProvider proxyUrl="https://example.com/proxy"> React provider:
Access to fetch at 'https://example.com/proxy/v1/dev_browser?_clerk_js_version=4.70.6' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://example.com' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
How do I get this to work from localhost? If I change it to <ClerkProvider proxyUrl="http://localhost:3000/proxy">, it just breaks:
GET https://localhost:3000/bind/npm/@clerk/clerk-js@4/dist/clerk.browser.js net::ERR_SSL_PROTOCOL_ERROR
Error: Clerk: Failed to load Clerk
at eval (loadClerkJsScript.js:20:1)
at async _IsomorphicClerk.loadClerkJS (isomorphicClerk.js:587:1)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Having mostly resolved https://github.com/orgs/clerk/discussions/3076 now (see my answer here), now I am currently facing this error when loading the Next.js locally using the
<ClerkProvider proxyUrl="https://example.com/proxy">
React provider:How do I get this to work from localhost? If I change it to
<ClerkProvider proxyUrl="http://localhost:3000/proxy">
, it just breaks:Beta Was this translation helpful? Give feedback.
All reactions