Skip to content

Commit

Permalink
Revert "fix: remove X-XSS-Protection header from helmet"
Browse files Browse the repository at this point in the history
This reverts commit aebb00d.
  • Loading branch information
titanism committed Jan 5, 2024
1 parent 878f7f0 commit da9d607
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,6 @@ class Web {
// (needs to come before i18n so HSTS header gets added)
if (this.config.helmet) app.use(helmet(this.config.helmet));

// remove X-XSS-Protection header from Helmet
app.use((ctx, next) => {
ctx.remove('X-XSS-Protection');
return next();
});

// i18n
if (this.config.i18n) {
// create new @ladjs/i18n instance
Expand Down

0 comments on commit da9d607

Please sign in to comment.