Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perfer X-Forwarded-Proto to prevent users lying
X-Forwarded-Proto should be the preferred header to used to check if the front end connection was HTTPS. Proto is the de facto standard for this, and is recommended in the deployment documentation. If the -Protocol header is checked first, that means most setups that only add a -Proto header will pass through a user provided -Protocol header, allowing users to lie about the protocol used. Ideally this would only check one header, and the reverse proxy would be required to send that header. Leaving this with the fallback behavior for now for backwards compatibility.
- Loading branch information