Consistent with rest of code
This commit is contained in:
parent
159f6fb26b
commit
265d692eb4
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -43,9 +43,9 @@ var gamePath = path.join(__dirname, "games")
|
||||||
// var imgPath = path.join(staticpath, 'imgs')
|
// var imgPath = path.join(staticpath, 'imgs')
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.header("Cross-Origin-Embedder-Policy", "require-corp");
|
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp")
|
||||||
res.header("Cross-Origin-Opener-Policy", "same-origin");
|
res.setHeader("Cross-Origin-Opener-Policy", "same-origin")
|
||||||
next();
|
next()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue