Opened 7 years ago

Closed 4 years ago

#17103 closed New feature (fixed)

Add HTTP Strict Transport Security support, to improve support for all-SSL sites

Reported by: Carl Meyer Owned by: nobody
Component: HTTP handling Version: master
Severity: Normal Keywords:
Cc: zborboa@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Since you pretty much shouldn't do anything with sessions or logins on a public site without SSL, I think a solid majority of public Django sites probably ought to be all-SSL. Given this, I think Django core should provide good support for all-SSL sites out of the box.

HSTS (HTTP Strict Transport Security) is an HTTP response header that allows a site to tell a browser to only ever access it over HTTPS. This avoids the need for redirect-to-SSL on repeat visits and reduces exposure to various types of attacks.

There is an existing implementation of HSTS in django-secure.

Change History (4)

comment:1 Changed 6 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by zborboa@…

Cc: zborboa@… added

comment:3 Changed 4 years ago by Sasha Romijn

This was fixed in 52ef6a47269a455113d95992f868939131f9c10c as part of #17101.

comment:4 Changed 4 years ago by Sasha Romijn

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top