Skip to content

Commit

Permalink
fix: remove X-XSS-Protection header from helmet
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 4, 2024
1 parent ec17739 commit aebb00d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ 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 aebb00d

Please sign in to comment.