add CORS headers for SharedArrayBuffers. remove deprecated unrotate(). fixes #239. see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer

This commit is contained in:
Stewart Allen 2023-01-15 16:45:22 -05:00
commit 9556e82128
2 changed files with 1 additions and 2 deletions

2
app.js
View file

@ -822,7 +822,7 @@ function cookieValue(cookie,key) {
}
function rewriteHtmlVersion(req, res, next) {
if (["/kiri/","/mesh/","/meta/"].indexOf(req.app.path) >= 0) {
if (["/kiri/","/mesh/","/meta/","/kiri/engine.html","/kiri/frame.html"].indexOf(req.app.path) >= 0) {
addCorsHeaders(req, res);
let real_write = res.write;
let real_end = res.end;

View file

@ -143,7 +143,6 @@ class Engine {
accept(this);
}
});
kiri.client.unrotate(this.settings);
});
}