Skip to content

Commit 1f0aeac

Browse files
authored
Remove CSPMiddleware since it is enabled by default in the upstream sentry (#2434)
remove CSPMiddleware since it is enabled by default in the upstream sentry
1 parent bd05749 commit 1f0aeac

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sentry/sentry.conf.example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ def get_internal_network():
322322
# Content Security Policy settings
323323
##############################################
324324

325-
if "csp.middleware.CSPMiddleware" not in MIDDLEWARE:
326-
MIDDLEWARE = ("csp.middleware.CSPMiddleware",) + MIDDLEWARE
327325
# CSP_REPORT_URI = "https://{your-sentry-installation}/api/{csp-project}/security/?sentry_key={sentry-key}"
328326
CSP_REPORT_ONLY = True
329327

0 commit comments

Comments
 (0)