(similar to
{{{
USE_X_FORWARDED_HOST
}}}
and
{{{
USE_X_FORWARDED_PORT
}}}
for X-Forwarded-Host and X-Forwarded-Port)
(NB: and as far as X-Forwarded-Proto is concerned, it's usually dealt with
via
{{{
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
}}}
)
Or is this header not standard enough?
If not, what would be a standard - or at least effective - way for a user
to (sort of) customize HttpRequest (get_raw_uri, build_absolute_uri) to
deal with this header?
--
Ticket URL: <https://code.djangoproject.com/ticket/34290>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
Thanks for the ticket. TBH, I've never heard about `X-Forwarded-Prefix` it
seems to be another non-standard header set by some proxies.
> Or is this header not standard enough?
Is this standard at all? I couldn't find any RFC or reliable docs on this.
> If not, what would be a standard - or at least effective - way for a
user to (sort of) customize HttpRequest (get_raw_uri, build_absolute_uri)
to deal with this header?
Please use one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels] for support questions.
--
Ticket URL: <https://code.djangoproject.com/ticket/34290#comment:1>
Comment (by Marc Perrin):
Thanks for the answer, yeah it seems non-standard (Traefik reverse proxy;
also mentioned here: https://microsoft.github.io/reverse-
proxy/articles/transforms.html)
--
Ticket URL: <https://code.djangoproject.com/ticket/34290#comment:2>