mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Merge pull request #2861 from GSA/2859-csp-notices---daily-scans
daily scan fix CSP duplicate host warning
This commit is contained in:
@@ -170,13 +170,13 @@ def _csp(config):
|
|||||||
"https://dap.digitalgov.gov",
|
"https://dap.digitalgov.gov",
|
||||||
"https://cdn.socket.io",
|
"https://cdn.socket.io",
|
||||||
],
|
],
|
||||||
"connect-src": [
|
"connect-src": list(dict.fromkeys([
|
||||||
"'self'",
|
"'self'",
|
||||||
"https://gov-bam.nr-data.net",
|
"https://gov-bam.nr-data.net",
|
||||||
"https://www.google-analytics.com",
|
"https://www.google-analytics.com",
|
||||||
f"{api_public_url}",
|
f"{api_public_url}",
|
||||||
f"{api_public_ws_url}",
|
f"{api_public_ws_url}",
|
||||||
],
|
])),
|
||||||
"style-src": ["'self'", asset_domain],
|
"style-src": ["'self'", asset_domain],
|
||||||
"img-src": ["'self'", asset_domain],
|
"img-src": ["'self'", asset_domain],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user