#31980: manage.py check --deploy should not throw security.W004 warning if
SECURE_HSTS_SECONDS is explicitly set to 0
-------------------------------------+-------------------------------------
Reporter: Magnus Longva | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: invalid
Keywords: check deploy | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Adam (Chainz) Johnson):
Indeed, the middleware only sends the header if the value is truthy.
I also don't think sending a max age of 0 seconds is valid, it's
essentially saying not to use HSTS.
--
Ticket URL: <https://code.djangoproject.com/ticket/31980#comment:3>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/078.4c0688d810b3d553081b1efb68a14a02%40djangoproject.com.