-
Notifications
You must be signed in to change notification settings - Fork 345
state is interstitial, reason: cross-origin-referrer #1566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just started getting this issue too. In my instance I have a chrome extension (built using the Clerk chrome extension starter kit here) that I am using to request data from my separate NextJS endpoint (which also uses Clerk) and it is failing due to this error. It worked 12 hours ago and then out of nowhere it stopped working. |
Hello @Shinyhero36 and thank you for reporting this issue.
|
The project is running on a self-hosted VMWare ESXI with apache2 and a reverse proxy on the gateway. The docker image is running on a Debian 12 VM |
any update or workaround for this bug? |
Hello everyone,
Based on the above, the issue
is related to the infrastructure setup, probably a service (eg apache2) that handles the request before reaching your application is changing the headers. One last thing I could suggest is checking the configuration of the |
I still needed to sync the clock with a NTP server to fix the interstitial state issue. Thank you for the time you dedicated to this issue 🙏 You can mark this issue as resolved |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Uh oh!
There was an error while loading. Please reload this page.
Package + Version
@clerk/nextjs
(4.23.2
)Dependencies + versions
Browser/OS
115.0.02 (64 bits)
18.17.0
Description
I am deploying an app with docker, a proxy and nextjs (standalone) using
create-t3-app
. Once I logged in, the page keeps refreshing indefinitely.Here are the logs when I set
debug
totrue
in themiddleware.ts
fileI was redirected to
http://36f2bef4ae24:3000/app
but I setCLERK_TRUST_HOST
totrue
and the problem was fixedIf I close the tab and reopen it:
401 Unauthorized
.<UserButton />
At first glance, this might be related to #1436, but I synced the server's clock.
Replicate the issue
.env.example
to.env
and set the env varsdocker compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml up
http://localhost:3000
, click onView app
and log inThe text was updated successfully, but these errors were encountered: