Skip to content

Commit

Permalink
Get CSP_ENV_SITES from environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gushil committed Dec 12, 2023
1 parent 3e14eac commit 242938f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kobo/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,10 @@ def dj_stripe_request_callback_method():
'https://*.staging.openclinica.io',
'https://*.openclinica-dev-eks.io',
]
CSP_FRAME_ANCESTORS = CSP_OC_SITES
CSP_CONNECT_SRC = CSP_CONNECT_SRC + CSP_OC_SITES
CSP_FRAME_SRC = CSP_FRAME_SRC + CSP_OC_SITES
CSP_ENV_SITES = env.url('CSP_ENV_SITES', [])
CSP_FRAME_ANCESTORS = CSP_OC_SITES + CSP_ENV_SITES
CSP_CONNECT_SRC = CSP_CONNECT_SRC + CSP_OC_SITES + CSP_ENV_SITES
CSP_FRAME_SRC = CSP_FRAME_SRC + CSP_OC_SITES + CSP_ENV_SITES

csp_report_uri = env.url('CSP_REPORT_URI', None)
if csp_report_uri: # Let environ validate uri, but set as string
Expand Down

0 comments on commit 242938f

Please sign in to comment.