From e548747f34a3a17e3e9c2a4fbfa5cf8a0c0bbbd3 Mon Sep 17 00:00:00 2001 From: Quentin Dreyer Date: Sat, 6 May 2023 16:54:40 +0200 Subject: [PATCH] fix: handle crossOriginIsolated window (#318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: handle crossOriginIsolation * change to space --------- Co-authored-by: Jimmy Wärting --- sw.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw.js b/sw.js index 5ec3792..dd75c1a 100644 --- a/sw.js +++ b/sw.js @@ -96,7 +96,8 @@ self.onfetch = event => { 'Content-Security-Policy': "default-src 'none'", 'X-Content-Security-Policy': "default-src 'none'", 'X-WebKit-CSP': "default-src 'none'", - 'X-XSS-Protection': '1; mode=block' + 'X-XSS-Protection': '1; mode=block', + 'Cross-Origin-Embedder-Policy': 'require-corp' }) let headers = new Headers(data.headers || {})