update headers to use SharedArrayBuffer in modern browsers

This commit is contained in:
Lucas Gelfond 2024-12-23 16:35:55 -08:00
parent 97bb2fdd9d
commit 8b3912f4fb

View File

@ -7,7 +7,7 @@
"lint:root": "eslint tests", "lint:root": "eslint tests",
"build": "npm run build --workspace=packages --if-present", "build": "npm run build --workspace=packages --if-present",
"pretest": "npm run build", "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": "server-test test:browser:server 3000 test:all",
"test:all": "npm-run-all test:browser:*:*", "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", "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",