Skip to content

Commit 9fbe1f9

Browse files
authored
CSP header: enforce mode (#9373)
1 parent 37e3a2a commit 9fbe1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def SESSION_COOKIE_SAMESITE(self):
105105
CSP_FRAME_ANCESTORS = ("'none'",)
106106
CSP_OBJECT_SRC = ("'none'",)
107107
CSP_REPORT_URI = None
108-
CSP_REPORT_ONLY = True # Set to false to enable CSP in blocking mode
108+
CSP_REPORT_ONLY = False
109109
CSP_EXCLUDE_URL_PREFIXES = (
110110
"/admin/",
111111
)

0 commit comments

Comments
 (0)