From 8b3912f4fb328b239eaae4c490e12d7580a0dd74 Mon Sep 17 00:00:00 2001 From: Lucas Gelfond Date: Mon, 23 Dec 2024 16:35:55 -0800 Subject: [PATCH] update headers to use SharedArrayBuffer in modern browsers --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a00527bb40..c25ae6f261 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "lint:root": "eslint tests", "build": "npm run build --workspace=packages --if-present", "pretest": "npm run build", - "serve": "http-server -c-1 -s -p 3000 .", + "serve": "http-server -c-1 -s -p 3000 . --cors --headers '{\"Cross-Origin-Embedder-Policy\":\"require-corp\",\"Cross-Origin-Opener-Policy\":\"same-origin\"}'", "test": "server-test test:browser:server 3000 test:all", "test:all": "npm-run-all test:browser:*:*", "test:browser": "mocha-headless-chrome --args=\"--enable-features=SharedArrayBuffer --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files\" -a no-sandbox",