{{{
add_header Strict-Transport-Security
"max-age=15768000; includeSubDomains; preload" always;
}}}
The header shows up as expected when querying any page, except for pages
under {{{/admin}}}.
Not sure if this is a bug in Django or nginx, or if I messed something up.
--
Ticket URL: <https://code.djangoproject.com/ticket/30356>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
This ticket tracker isn't a [wiki:TicketClosingReasons/UseSupportChannels
support channel] to debug issues. You need to investigate the problem
yourself and explain why Django is at fault.
--
Ticket URL: <https://code.djangoproject.com/ticket/30356#comment:1>
Old description:
> I've made a [https://arc-relight.site site] using {{{Django v2.1.7}}} &
> {{{nginx v1.10.3}}} and I've set the {{{Strict-Transport-Security}}}
> header in nginx:
>
> {{{
> add_header Strict-Transport-Security
> "max-age=15768000; includeSubDomains; preload" always;
> }}}
>
> The header shows up as expected when querying any page, except for pages
> under {{{/admin}}}.
> Not sure if this is a bug in Django or nginx, or if I messed something
> up.
New description:
I've made a [https://arc-relight.site site] using {{{Django v2.1.7}}} &
{{{nginx v1.10.3}}} and I've set the {{{Strict-Transport-Security}}}
header in nginx:
{{{
add_header Strict-Transport-Security
"max-age=15768000; includeSubDomains; preload" always;
}}}
The header shows up as expected when querying any page, except for pages
under {{{/admin}}}.
Not sure if this is a bug in Django or nginx, or if I messed something up.
Update: turns out nginx was not inheriting the header in that path so it's
not a Django bug.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30356#comment:2>
* resolution: needsinfo => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/30356#comment:3>