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
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction / Replay Link
.
Publishable key
.
Description
We've been suffering from the various remix issues and have an app that supports iframe embeds. Clerk does not work with iframe embeds at all - it produces a 401 and breaks. Ideally, Clerk wouldn't break when used inside of iframes. But, sparing that, it would be nice if we could disable Clerk for certain routes.
We got recommended to something like this:
exportconstloader=(args: LoaderFunctionArgs)=>{constu=newURL(args.request.url);// If we're loading an embed path, skip authentication// because of Clerk's quality problems.if(u.pathname.startsWith("/embed")){returnloaderInner({
...args,request: {
...args.request,auth: {// Faking the request just in case a downstream// loader expects realismsessionClaims: {}asany,userId: null,orgId: null,debug: falseasany,orgRole: null,}asany,},}satisfiesLoaderFunctionArgsWithAuth);}else{returnrootAuthLoader(args,loaderInner);}};
To resolve this without an update on Clerk's end, but that produces the error message:
🔒 Clerk: Looks like you didn't pass 'clerkState' to "".
Use 'rootAuthLoader' as your root loader. Then, simply wrap the App component with ClerkApp and make it the default export.
Example:
So, in short:
Clerk doesn't work in iframes. When it renders an interstitial, it breaks the page.
We'd love for it to work in iframes, but if not, for it to be disable'able on specific routes, like it appears it is for Next.js
Hello! This issue has been resolved with the release of Core 2, which totally replaces the Interstitial with a new mechanism that does not break inside iframes.
I'll be closing this issue as it is fixed on the latest version of @clerk/remix package.
Preliminary Checks
Reproduction / Replay Link
.
Publishable key
.
Description
We've been suffering from the various remix issues and have an app that supports iframe embeds. Clerk does not work with iframe embeds at all - it produces a 401 and breaks. Ideally, Clerk wouldn't break when used inside of iframes. But, sparing that, it would be nice if we could disable Clerk for certain routes.
We got recommended to something like this:
To resolve this without an update on Clerk's end, but that produces the error message:
So, in short:
Steps to reproduce:
Expected behavior:
Clerk shouldn't authenticate in the iframe.
Actual behavior:
It does and breaks the iframe environment
Environment
The text was updated successfully, but these errors were encountered: