helmetjs / helmet

Help secure Express apps with various HTTP headers
https://helmetjs.github.io/
MIT License
10.18k stars 367 forks source link

helmet + sanitizeFilter #442

Closed mejrimo closed 11 months ago

mejrimo commented 11 months ago

i read on the internet that you can use helmet and mongoose's sanitizer this way: app.use(helmet({ sanitizeFilter: true, })); but i can't find it in your documentation. so i'm guessing if this is true and if it works the same way of mongoose.set("sanitizeFilter", true);.

thank you very much in advance for your reply

EvanHahn commented 11 months ago

I'm not familiar with Mongoose but this isn't a Helmet option. It looks like something that's part of Mongoose.

Hope this helps!