mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -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';"
|
"object-src 'self';"
|
||||||
"font-src 'self' data:;"
|
"font-src 'self' data:;"
|
||||||
"img-src 'self' *.google-analytics.com *.notifications.service.gov.uk {} 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:
|
if 'Cache-Control' in response.headers:
|
||||||
del response.headers['Cache-Control']
|
del response.headers['Cache-Control']
|
||||||
|
|||||||
Reference in New Issue
Block a user