Skip to content

Commit

Permalink
chore: add CSP_REPORT_ONLY setting
Browse files Browse the repository at this point in the history
  • Loading branch information
voneiden committed Apr 24, 2024
1 parent 482ac33 commit 97f60bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions open_city_profile/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
CSP_IMG_SRC=(str, None),
CSP_STYLE_SRC=(str, None),
CSP_SCRIPT_SRC=(str, None),
CSP_REPORT_ONLY=(bool, False),
CSP_REPORT_URI=(str, None),
)
if os.path.exists(env_file):
Expand Down Expand Up @@ -404,4 +405,5 @@
CSP_IMG_SRC = env.str("CSP_IMG_SRC")
CSP_STYLE_SRC = env.str("CSP_STYLE_SRC")
CSP_SCRIPT_SRC = env.str("CSP_SCRIPT_SRC")
CSP_REPORT_ONLY = env.bool("CSP_REPORT_ONLY")
CSP_REPORT_URI = env.str("CSP_REPORT_URI")

0 comments on commit 97f60bd

Please sign in to comment.