Sfoglia il codice sorgente

Merge pull request #2156 from overleaf/hb-secure-headers

Use helmet to set nosniff and sameorigin

GitOrigin-RevId: e5d684d772523ca740be75ebe9d248db74209f25
Simon Detheridge 7 anni fa
parent
commit
2031115f48
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      services/web/app/src/infrastructure/Server.js

+ 1 - 3
services/web/app/src/infrastructure/Server.js

@@ -204,9 +204,7 @@ webRouter.use(function(req, res, next) {
     dnsPrefetchControl: false,
     dnsPrefetchControl: false,
     referrerPolicy: { policy: 'origin-when-cross-origin' },
     referrerPolicy: { policy: 'origin-when-cross-origin' },
     noCache: isLoggedIn || isProjectPage,
     noCache: isLoggedIn || isProjectPage,
-    noSniff: false,
-    hsts: false,
-    frameguard: false
+    hsts: false
   })(req, res, next)
   })(req, res, next)
 })
 })