From ccb64418f8acccb9dd13d9ddafc70afdbb277b52 Mon Sep 17 00:00:00 2001 From: Viljami Kuosmanen Date: Wed, 26 Aug 2026 10:33:30 +0300 Subject: [PATCH] Remove COI service worker Co-authored-by: Claude --- docusaurus.config.js | 6 -- src/components/Sandbox/Iframe.tsx | 6 +- static/coi-serviceworker.js | 149 ------------------------------ 3 files changed, 1 insertion(+), 160 deletions(-) delete mode 100644 static/coi-serviceworker.js diff --git a/docusaurus.config.js b/docusaurus.config.js index c77a5f1b..1e97606f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -40,12 +40,6 @@ const config = { deploymentBranch: 'gh-pages', trailingSlash: true, - // GitHub Pages can't set COOP/COEP response headers, which the embedded - // StackBlitz sandbox (WebContainers) requires for cross-origin isolation. - // This service worker shim injects them client-side. - // https://developer.stackblitz.com/platform/webcontainers/browser-support#embedding - scripts: ['/coi-serviceworker.js'], - onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', diff --git a/src/components/Sandbox/Iframe.tsx b/src/components/Sandbox/Iframe.tsx index cd861737..3afe21a5 100644 --- a/src/components/Sandbox/Iframe.tsx +++ b/src/components/Sandbox/Iframe.tsx @@ -8,10 +8,6 @@ export const Iframe = ( return (