Skip to content
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

Add switch to enable usage of X-Forwarded-Proto. #889

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

ndm2
Copy link
Contributor

@ndm2 ndm2 commented Mar 18, 2022

I've seen this problem come up quite a few times on SO and Slack, usually from people using cloud services like AWS or Azure.

And while I'd rather hardcode the protocol, or even the complete full base URL, this might not always be applicable, or people might simply be unaware of the source or the problem.

refs cakephp/cakephp#16393

Allows to rely on the `X-Forwarded-Proto` header to determine
secure connection usage for generating absolute URLs.
@markstory markstory merged commit 630f148 into 4.x Mar 18, 2022
@markstory markstory deleted the ndm2-patch-1 branch March 18, 2022 14:56
@saeideng saeideng added this to the 4.x milestone Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants