From c791f950cbb480576f78126c78f3cc353dd2f0c6 Mon Sep 17 00:00:00 2001 From: MatiasManevi Date: Mon, 23 Feb 2026 18:41:47 -0300 Subject: [PATCH] Enable COOP/COEP headers for wasm Vite dev servers --- wasm/demo_app/vite.demo.config.ts | 4 ++++ wasm/tests/sandbox/vite.sandbox.config.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/wasm/demo_app/vite.demo.config.ts b/wasm/demo_app/vite.demo.config.ts index b84e280f..a5a0217a 100644 --- a/wasm/demo_app/vite.demo.config.ts +++ b/wasm/demo_app/vite.demo.config.ts @@ -23,5 +23,9 @@ export default defineConfig({ }, server: { open: true, + headers: { + "Cross-Origin-Opener-Policy": "same-origin", + "Cross-Origin-Embedder-Policy": "require-corp", + }, }, }) diff --git a/wasm/tests/sandbox/vite.sandbox.config.ts b/wasm/tests/sandbox/vite.sandbox.config.ts index 123f412b..01312ba1 100644 --- a/wasm/tests/sandbox/vite.sandbox.config.ts +++ b/wasm/tests/sandbox/vite.sandbox.config.ts @@ -23,5 +23,9 @@ export default defineConfig({ }, server: { open: true, + headers: { + "Cross-Origin-Opener-Policy": "same-origin", + "Cross-Origin-Embedder-Policy": "require-corp", + }, }, })