Revert "Remove Google Analytics"

This reverts commit f31170f5a2.
This commit is contained in:
Chris Hill-Scott
2016-10-05 10:55:04 +01:00
parent 2eb7360468
commit e095d6024c
3 changed files with 12 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ def test_owasp_useful_headers_set(app_):
assert response.headers['X-XSS-Protection'] == '1; mode=block'
assert response.headers['Content-Security-Policy'] == (
"default-src 'self' 'unsafe-inline';"
"script-src 'self' 'unsafe-inline' 'unsafe-eval' data:;"
"script-src 'self' *.google-analytics.com 'unsafe-inline' 'unsafe-eval' data:;"
"object-src 'self';"
"font-src 'self' data:;"
"img-src 'self' *.notifications.service.gov.uk data:;"
"img-src 'self' *.google-analytics.com *.notifications.service.gov.uk data:;"
)