kevintao1024
kevintao1024•2y ago

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! 🫶
No description
No description
No description
No description
2 Replies
kevintao1024
kevintao1024OP•2y ago
Changed Domain of convex to https://clerk.truthai.fun/.well-known/jwks.json, still the same error.
No description
ballingt
ballingt•2y ago
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.

Did you find this page helpful?