Skip to content

Commit 8652573

Browse files
authored
Merge pull request #7083 from readthedocs/davidfischer/document-hsts-support
Document HSTS support
2 parents 96140c8 + fe65e51 commit 8652573

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/custom_domains.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ You can also host your documentation from your own domain.
9999

100100
.. _Amazon CAA guide: https://docs.aws.amazon.com/acm/latest/userguide/setup-caa.html
101101

102+
Strict Transport Security
103+
+++++++++++++++++++++++++
104+
105+
By default, we do not return a `Strict Transport Security header`_ (HSTS) for user custom domains.
106+
This is a conscious decision as it can be misconfigured in a not easily reversible way.
107+
For both |org_brand| and |com_brand|, HSTS for custom domains can be set upon request.
108+
109+
We always return the HSTS header with a max-age of at least one year
110+
for our own domains including ``*.readthedocs.io``, ``*.readthedocs-hosted.com``, ``readthedocs.org`` and ``readthedocs.com``.
111+
112+
.. _Strict Transport Security header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
113+
114+
102115
Proxy SSL
103116
---------
104117

0 commit comments

Comments
 (0)