-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Pow Email Confirmation Link Results in 400 Bad Request The plain HTTP request was sent to HTTPS port #647
Comments
I have some additional information. The ACTUAL link in the form is this:
That redirects to the link in the original comment. |
This is super odd, because in my tests on my local, it generates URL's of the form:
|
Wowzers. I added a log message (LITERALLY IN THE TEMPLATE) and it wound up outputting the following HTML:
I'm assuming something else is replacing the URL in the email, and that it's not Phoenix. |
There must be some kind of internal networking going on with my production host, which is handling the translation of url3648.user-docs.com to http://app.user-docs.com:443. The concerning part then: why's it generating http urls on port 443 instead of https. Reason must be the endpoint config of my production host. Maybe because I don't have https configured:
|
Your endpoint url config is missing the scheme:
|
Not sure exactly why, but it's generating a URL of the form:
http://app.user-docs.com:443/confirm-email/{token}
Everything is find. If I navigate directly to that URL, it redirects to the HTTPS endpoint automatically, but clicking it from the email yields a 400. Any ideas?
The text was updated successfully, but these errors were encountered: