From 236fafd5975045897cb83ef9193f05bba0b198ff Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Thu, 13 Mar 2025 14:26:45 -0400 Subject: [PATCH] Update request_helper.py --- notifications_utils/request_helper.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/notifications_utils/request_helper.py b/notifications_utils/request_helper.py index 992deb203..dd0fc0804 100644 --- a/notifications_utils/request_helper.py +++ b/notifications_utils/request_helper.py @@ -86,11 +86,6 @@ class ResponseHeaderMiddleware(object): if "cross-origin-resource-policy" not in lower_existing_header_names: headers.append(("Cross-Origin-Resource-Policy", "cross-origin")) - # Apply COEP restrictions to everything except YouTube - if "youtube.com" not in request.url and "youtube-nocookie.com" not in request.url: - if "cross-origin-embedder-policy" not in lower_existing_header_names: - headers.append(("Cross-Origin-Embedder-Policy", "require-corp")) - return start_response(status, headers, exc_info) # svg content type should not contain charset