Skip to content

Commit bb738a1

Browse files
authored
fix: cross-origin-isolation
1 parent 11f58a1 commit bb738a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/setupProxy.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = (app) => {
2+
app.use((_, res, next) => {
3+
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
4+
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
5+
next();
6+
});
7+
};

0 commit comments

Comments
 (0)