Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner
Created April 5, 2021 13:40
Show Gist options
  • Save DuncanFaulkner/45fc9aa7d12b6d2d917447941ef3bc29 to your computer and use it in GitHub Desktop.
Save DuncanFaulkner/45fc9aa7d12b6d2d917447941ef3bc29 to your computer and use it in GitHub Desktop.
ssr-6
// Set headers for all requests
app.get('*', (req, res, next) => {
res.setHeader('X-Frame-Options', 'DENY');
next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment