We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b1432 commit 25f10eaCopy full SHA for 25f10ea
sentry/sentry.conf.example.py
@@ -306,3 +306,16 @@ def get_internal_network():
306
307
if OPENAI_API_KEY:
308
SENTRY_FEATURES["organizations:open-ai-suggestion"] = True
309
+
310
+##############################################
311
+# Content Security Policy settings
312
313
314
+if "csp.middleware.CSPMiddleware" not in MIDDLEWARE:
315
+ MIDDLEWARE = ("csp.middleware.CSPMiddleware",) + MIDDLEWARE
316
+# CSP_REPORT_URI = "https://{your-sentry-installation}/api/{csp-project}/security/?sentry_key={sentry-key}"
317
+CSP_REPORT_ONLY = True
318
319
+# optional extra permissions
320
+# https://django-csp.readthedocs.io/en/latest/configuration.html
321
+# CSP_SCRIPT_SRC += ["example.com"]
0 commit comments