Replies: 2 comments 1 reply
-
Hey @Stadly, |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was stuck on this too. What worked for me was setting the
See https://kit.svelte.dev/docs/adapter-node#environment-variables-origin-protocolheader-hostheader-and-port-header for details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Auth.js with SvelteKit. In my development environment, everything works as it should. I have a
Dockerfile
for setting up the production environment. When the production environment is deployed it works as it should. But when testing the production environment locally, it does not work.When I run the production environment locally, it is available under
http://localhost:3000
. The issue is that when I go tohttp://localhost:3000/auth/signin
, the form looks like this:<form action="https://localhost:3000/auth/signin/azure-ad" method="POST">
. As you can see,http
has been changed tohttps
. This results in aERR_SSL_PROTOCOL_ERROR
. How can I prevent this from happening?When running the development environment without using the
Dockerfile
(npm run dev
), the form action retains thehttp
protocol, so it works as it should.Beta Was this translation helpful? Give feedback.
All reactions