You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+205-9
Original file line number
Diff line number
Diff line change
@@ -100,15 +100,15 @@ Pragma: no-cache
100
100
101
101
You can toggle the setting of headers with default values by passing `True` or `False` and override default values by passing a string to the following options:
102
102
103
-
-`server` - set the Server header, e.g. `Server=“Secure”`*(string / bool, default=False)*
104
-
-`hsts` - set the Strict-Transport-Security header *(string / bool, default=True)*
105
-
-`xfo` - set the X-Frame-Options header *(string / bool, default=True)*
106
-
-`xss` - set the X-XSS-Protection header *(string / bool, default=True)*
107
-
-`content` - set the X-Content-Type-Options header *(string / bool, default=True)*
108
-
-`csp` - set the Content-Security-Policy *(string / bool, default=False)* *
109
-
-`referrer` - set the Referrer-Policy header *(string / bool, default=True)*
110
-
-`cache` - set the Cache-control and Pragma headers *(string / bool, default=True)*
111
-
-`feature` - set the Feature-Policy header *(string / bool, default=False)*
103
+
-`server` - set the Server header, e.g. `Server=“Secure”`*(string / bool / SecurePolicies, default=False)*
104
+
-`hsts` - set the Strict-Transport-Security header *(string / bool / SecurePolicies, default=True)*
105
+
-`xfo` - set the X-Frame-Options header *(string / bool / SecurePolicies, default=True)*
106
+
-`xxp` - set the X-XSS-Protection header *(string / bool / SecurePolicies, default=True)*
107
+
-`content` - set the X-Content-Type-Options header *(string / bool / SecurePolicies, default=True)*
108
+
-`csp` - set the Content-Security-Policy *(string / bool / SecurePolicies, default=False)* *
109
+
-`referrer` - set the Referrer-Policy header *(string / bool / SecurePolicies, default=True)*
110
+
-`cache` - set the Cache-control and Pragma headers *(string / bool / SecurePolicies, default=True)*
111
+
-`feature` - set the Feature-Policy header *(SecurePolicies / string / bool / SecurePolicies, default=False)*
[HTTP Strict Transport Security Cheat Sheet | OWASP](https://www.owasp.org/index.php/HTTP_Strict_Transport_Security_Cheat_Sheet)
318
+
***Referrer:**[A new security header: Referrer Policy | Scott Helme](https://scotthelme.co.uk/a-new-security-header-referrer-policy/), [Referrer-Policy | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)
319
+
***Feature:**[A new security header: Feature Policy | Scott Helme](https://scotthelme.co.uk/a-new-security-header-feature-policy/), [Feature-Policy | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy), [Introduction to Feature Policy | Google Developers](https://developers.google.com/web/updates/2018/06/feature-policy)
0 commit comments