Skip to content

Commit 17c4181

Browse files
authored
feat: provide csrf settings information for sentry config (#2762)
* feat: provide csrf settings information for sentry config * chore: trim trailing whitespace
1 parent 302b22b commit 17c4181

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sentry/sentry.conf.example.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,14 @@ def get_internal_network():
330330
# optional extra permissions
331331
# https://django-csp.readthedocs.io/en/latest/configuration.html
332332
# CSP_SCRIPT_SRC += ["example.com"]
333+
334+
#################
335+
# CSRF Settings #
336+
#################
337+
338+
# Since version 24.1.0, Sentry migrated to Django 4 which contains stricter CSRF protection.
339+
# If you are accessing Sentry from multiple domains behind a reverse proxy, you should set
340+
# this to match your IPs/domains. Ports should be included if you are using custom ports.
341+
# https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-CSRF_TRUSTED_ORIGINS
342+
343+
# CSRF_TRUSTED_ORIGINS = ["example.com", "127.0.0.1:9000"]

0 commit comments

Comments
 (0)