admin管理员组文章数量:1415145
I'm new to Auth.js/Next-Auth. I set up credentials provider (the only provider) and in development environment all works fine, but when I pass to production evnironment I have errors about "trusted host".
My case is particular because I have a domain as the real host but never reached by users because they access using different aliases.
- Main host: customerarea.hiddendomain
- Public domain 1: customerarea.domain1
- Public domain 2: customerarea.domain2
- Public domain 3: customerarea.domain3
To be more clear I specify that the app is the same, changes are only about logos and some texts showed, based on domain.
Host and aliases are correctly configured in a VPS with Plesk, because the "customerarea v1" is online and all is fine but I'm developing "customerarea v2" to replace it.
How can configure Auth.js to do this?
本文标签: nextjsAuthjs 5 how can I trust multiple domainsStack Overflow
版权声明:本文标题:next.js - Auth.js 5: how can I trust multiple domains? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745214226a2648067.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论