mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Added content security policy header.
unsafe-inline exception added to allow inline js scripts we have in base govuk_template.
This commit is contained in:
@@ -6,3 +6,4 @@ def test_owasp_useful_headers_set(notifications_admin):
|
||||
assert response.headers['X-Frame-Options'] == 'deny'
|
||||
assert response.headers['X-Content-Type-Options'] == 'nosniff'
|
||||
assert response.headers['X-XSS-Protection'] == '1; mode=block'
|
||||
assert response.headers['Content-Security-Policy'] == "default-src 'self' 'unsafe-inline'" # noqa
|
||||
|
||||
Reference in New Issue
Block a user