The production environment cannot be logged in and an error `Invalid HTTP Origin header` is reported
I'm using convex+clerk+fly to deploy the aitown project, but I can't log in, and the console reports an error Invalid HTTP Origin header.
The hostname of fly is https://vl-ai-town.fly.dev/, the domain name set by clerk is https://truthai.fun/, I guess the problem is caused by the difference, but the domain name of clerk cannot be set to https://vl-ai-town.fly.dev/.
I've tried but didn't get a solution, so looking for help here. Hope that works out. Thanks! 🫶




2 Replies
Changed
Domain
of convex to https://clerk.truthai.fun/.well-known/jwks.json
, still the same error.
It looks like this is a Clerk issue, not related to Convex — you shouldn't need to change the authentication configuration in Convex for this.
Where is your app hosted now, can you host it at truth.ai?
Also note that you can make a development Clerk project that will allow you to use domain names like this if you want to start with that.