We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5f2c0 commit e7164bbCopy full SHA for e7164bb
litert/js/apps/model_tester/serve.js
@@ -53,6 +53,12 @@ const host = args['public'] ? '0.0.0.0' : '127.0.0.1';
53
console.log(staticFilesPath);
54
55
const app = express();
56
+app.use((_req, res, next) => {
57
+ // Set headers to enable Wasm pthread emulation.
58
+ res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
59
+ res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp');
60
+ next();
61
+});
62
app.use('/', express.static(staticFilesPath));
63
app.listen(args.port, host);
64
console.log(
0 commit comments