mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -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:
@@ -123,6 +123,8 @@ def useful_headers_after_request(response):
|
||||
response.headers.add('X-Frame-Options', 'deny')
|
||||
response.headers.add('X-Content-Type-Options', 'nosniff')
|
||||
response.headers.add('X-XSS-Protection', '1; mode=block')
|
||||
response.headers.add('Content-Security-Policy',
|
||||
"default-src 'self' 'unsafe-inline'")
|
||||
return response
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user