-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
fix: Use port 80 to get better headers for Codespaces, fixes #6102 #6398
Conversation
Download the artifacts for this pull request:
See Testing a PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the condition because it broke Gitpod.
And I haven't tested Codespaces yet.
19b5095
to
d1391fb
Compare
Open to your suggestions, thanks for catching the copy/paste failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it with Drupal 10, login works.
It is mind-blowing how tricky the cloud can be 🤯
The Issue
Handling ports in HTTP is always a little complex, port 80 is default for http, port 443 for https. Codespaces seems to handle the Host header and X-Forwarded-Host incorrectly when it's forwarding a nonstandard (not port 80) port.
How This PR Solves The Issue
Use port 80 by default in codespaces. This seems to do no harm. It affects only Codespaces.
Manual Testing Instructions