Skip to content

Instantly share code, notes, and snippets.

@hiakku

hiakku/server.js Secret

Created October 21, 2022 05:08
Show Gist options
  • Save hiakku/d491e587bd5815812930e39d5758b286 to your computer and use it in GitHub Desktop.
Save hiakku/d491e587bd5815812930e39d5758b286 to your computer and use it in GitHub Desktop.
module.exports = (app) => {
app.use((_, res, next) => {
res.setHeader(“Cross-Origin-Opener-Policy”, “same-origin”);
res.setHeader(“Cross-Origin-Embedder-Policy”, “credentialless”);
next();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment