mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -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:
@@ -21,7 +21,7 @@ def test_owasp_useful_headers_set(
|
||||
"font-src 'self' static.example.com data:;"
|
||||
"img-src "
|
||||
"'self' static.example.com *.google-analytics.com *.notifications.service.gov.uk static-logos.test.com data:;"
|
||||
"frame-src 'self' www.youtube.com;"
|
||||
"frame-src 'self' www.youtube-nocookie.com;"
|
||||
)
|
||||
|
||||
|
||||
@@ -43,5 +43,5 @@ def test_headers_non_ascii_characters_are_replaced(
|
||||
"font-src 'self' static.example.com data:;"
|
||||
"img-src "
|
||||
"'self' static.example.com *.google-analytics.com *.notifications.service.gov.uk static-logos??.test.com data:;"
|
||||
"frame-src 'self' www.youtube.com;"
|
||||
"frame-src 'self' www.youtube-nocookie.com;"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user