#35800: Clarify SECURE_PROXY_SSL_HEADER as it relates to the wsgi.url_scheme
environ
-------------------------------------+-------------------------------------
Reporter: Klaas van Schelven | Owner: (none)
Type: | Status: closed
Cleanup/optimization |
Component: HTTP handling | Version: 5.1
Severity: Normal | Resolution:
| worksforme
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* component: Uncategorized => HTTP handling
* resolution: => worksforme
* status: new => closed
* type: Uncategorized => Cleanup/optimization
Comment:
Hello Klaas van Schelven! Thank you for taking the time to create this
ticket.
I have reviewed both linked docs and I don't necessarily agree with this
sentence from your report:
> "it seems this is an absolutely required setting to get `is_secure`
working correctly when behind a proxy."
To me, the docs clearly says that this *may* be necessary, in cases where
your proxy *may* be swallowing the `https` from the original request. Then
it says how, depending on how your app communicates with the proxy,
`is_secure` *may* always be True or False, and not accounting for the
original inbound request.
Because of the above, I'll be closing the ticket accordingly, but please
note that we always welcome docs improvements to help future readers. So,
if you want to propose a PR with a concrete suggestion about what
clarification/example you would add, please re-open this ticket and we
will happily review it to re-triage this report.
Thanks again!
--
Ticket URL: <
https://code.djangoproject.com/ticket/35800#comment:1>