Skip to content

Commit aebb00d

Browse files
committed
fix: remove X-XSS-Protection header from helmet
1 parent ec17739 commit aebb00d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ class Web {
259259
// (needs to come before i18n so HSTS header gets added)
260260
if (this.config.helmet) app.use(helmet(this.config.helmet));
261261

262+
// remove X-XSS-Protection header from Helmet
263+
app.use((ctx, next) => {
264+
ctx.remove('X-XSS-Protection');
265+
return next();
266+
});
267+
262268
// i18n
263269
if (this.config.i18n) {
264270
// create new @ladjs/i18n instance

0 commit comments

Comments
 (0)