Skip to content

Commit 6a25813

Browse files
angela-tranjgravois
andcommitted
refactor: narrow down connect-src directive
Co-authored-by: john gravois <[email protected]>
1 parent c332806 commit 6a25813

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

benefits/settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,13 @@ def RUNTIME_ENVIRONMENT():
313313
CONTENT_SECURITY_POLICY = {
314314
"DIRECTIVES": {
315315
"base-uri": [NONE],
316-
"connect-src": [SELF, "https://api.amplitude.com/", "https://cdn.jsdelivr.net/"],
316+
"connect-src": [
317+
SELF,
318+
"https://api.amplitude.com/",
319+
"https://cdn.jsdelivr.net/npm/@switchio",
320+
"https://cdn.jsdelivr.net/npm/bootstrap",
321+
"https://cdn.jsdelivr.net/npm/jquery",
322+
],
317323
"default-src": [SELF],
318324
"font-src": [SELF, "https://fonts.gstatic.com/"],
319325
"frame-ancestors": [NONE],

0 commit comments

Comments
 (0)