Skip to content

Commit

Permalink
Updated csp policies to match ga documentation (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangrundy7 authored Nov 13, 2024
1 parent bcec391 commit 16ededc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rh_ui/security.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Blueprint

CSP = {
'default-src': [
"'self'",
Expand All @@ -17,12 +18,16 @@
'connect-src': [
"'self'",
'https://cdn.ons.gov.uk',
'https://*.google-analytics.com/'
'https://*.google-analytics.com/',
"https://*.analytics.google.com",
"https://*.googletagmanager.com"
],
'img-src': [
"'self'",
'data:',
'https://cdn.ons.gov.uk'
'https://cdn.ons.gov.uk',
"https://*.google-analytics.com",
"https://*.googletagmanager.com"
],
}

Expand Down

0 comments on commit 16ededc

Please sign in to comment.