-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Missing information for UNTRUST_HOST_ERROR server error #6113
Comments
@theetherGit |
Maybe, I'm using sveltekit and i had the same issue so might be the reason is this env variable. |
Hi, #6132 (comment) could you test out this version? You should not see this server error anymore. Once it's verified, it will be included in the next release, when the PR is merged! |
|
I just had a chance to retest and I confirm the problem does not happen anymore even with NEXTAUTH_URL env var unset. |
[auth][error][UntrustedHost]: Host must be trusted. URL was: http://..... the same problem , how to fix ? |
you can set "trustHost: true" on your authConfig
that accept other host, not so save but for my small use-case is ok. |
Jan-T-Berg thanks! Тhis solved my problems |
auth.ts const config = { solve your issue :D |
Had same issue. The solution I preferred was setting the environment variable AUTH_TRUST_HOST to true i.e. AUTH_TRUST_HOST=true |
What is the improvement or update you wish to see?
I'm expecting the information shown at https://authjs.dev/reference/errors to provide information about how to fix the UNTRUST_HOST_ERROR because this is where we are pointed to by the error message (actually, the link with 4.18.0 is https://next-auth.js.org/errors#untrust_host_error but considering the name change to Auth.js, I'm expecting the new site to show the information)
Is there any context that might help us understand?
Yes, here is the error message I get with version 4.18.0 that makes it impossible for me to upgrade to 4.18.6:
Does the docs page already exist? Please link to it.
No response
The text was updated successfully, but these errors were encountered: