mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-21 21:53:42 -04:00
Add 'self' to 'frame-src' header
Allows iframes to contain pages from the same domain as the parent page.
This commit is contained in:
@@ -514,7 +514,7 @@ def useful_headers_after_request(response):
|
||||
"object-src 'self';"
|
||||
"font-src 'self' data:;"
|
||||
"img-src 'self' *.google-analytics.com *.notifications.service.gov.uk {} data:;"
|
||||
"frame-src www.youtube.com;".format(get_cdn_domain())
|
||||
"frame-src 'self' www.youtube.com;".format(get_cdn_domain())
|
||||
))
|
||||
if 'Cache-Control' in response.headers:
|
||||
del response.headers['Cache-Control']
|
||||
|
||||
Reference in New Issue
Block a user