Skip to content

Commit

Permalink
feat: provide csrf settings information for sentry config (#2762)
Browse files Browse the repository at this point in the history
* feat: provide csrf settings information for sentry config

* chore: trim trailing whitespace
  • Loading branch information
aldy505 committed Feb 6, 2024
1 parent 302b22b commit 17c4181
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,14 @@ def get_internal_network():
# optional extra permissions
# https://django-csp.readthedocs.io/en/latest/configuration.html
# CSP_SCRIPT_SRC += ["example.com"]

#################
# CSRF Settings #
#################

# Since version 24.1.0, Sentry migrated to Django 4 which contains stricter CSRF protection.
# If you are accessing Sentry from multiple domains behind a reverse proxy, you should set
# this to match your IPs/domains. Ports should be included if you are using custom ports.
# https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-CSRF_TRUSTED_ORIGINS

# CSRF_TRUSTED_ORIGINS = ["example.com", "127.0.0.1:9000"]

0 comments on commit 17c4181

Please sign in to comment.