#30356: HSTS disabled in admin pages
--------------------------------+--------------------------------------
     Reporter:  ObserverOfTime  |                    Owner:  nobody
         Type:  Bug             |                   Status:  closed
    Component:  Uncategorized   |                  Version:  2.1
     Severity:  Normal          |               Resolution:  needsinfo
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Description changed by ObserverOfTime:

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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.da07c754e500a0c9eab77fb2d4a9eeb5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to