mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Serve video from a domain that doesn’t set cookies
Then it’s one less cookie we have to get users to opt in to. We don’t derive any value from Youtube setting cookies. `youtube-nocookie.com` is a domain provided by Google for this purpose.
This commit is contained in:
@@ -558,7 +558,7 @@ def useful_headers_after_request(response):
|
||||
"object-src 'self';"
|
||||
"font-src 'self' {asset_domain} data:;"
|
||||
"img-src 'self' {asset_domain} *.google-analytics.com *.notifications.service.gov.uk {logo_domain} data:;"
|
||||
"frame-src 'self' www.youtube.com;".format(
|
||||
"frame-src 'self' www.youtube-nocookie.com;".format(
|
||||
asset_domain=current_app.config['ASSET_DOMAIN'],
|
||||
logo_domain=get_logo_cdn_domain(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user