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