add x-xss-protection header

This commit is contained in:
Mystikfluu 2022-07-03 11:16:55 +02:00
parent f29ab9c96f
commit ad0d9b1215

View File

@ -326,6 +326,11 @@ if(!config.disallow_proxies_by_headers) {
blocked_headers = [] blocked_headers = []
} }
app.use(function(req,res,next) {
res.set("X-XSS-Protection","1; mode=block")
next()
})
if(DID_I_FINALLY_ADD_HTTPS) { if(DID_I_FINALLY_ADD_HTTPS) {
//auto redirect to https //auto redirect to https