File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,16 @@ function check () {
1616 return true
1717}
1818app . use ( healthCheck . middleware ( [ check ] ) )
19+ app . use ( ( req , res , next ) => {
20+ res . header ( 'Referrer-Policy' , 'strict-origin-when-cross-origin' ) ;
21+ res . header ( 'Permissions-Policy' , 'geolocation=(), microphone=(), camera=()' ) ;
22+ res . header ( 'X-Content-Type-Options' , 'nosniff' ) ;
23+ res . header ( 'Strict-Transport-Security' , 'max-age=31536000; includeSubDomains; preload' ) ;
24+ res . header ( 'Cache-control' , 'public, max-age=0' ) ;
25+ res . header ( 'Pragma' , 'no-cache' ) ;
26+
27+ next ( ) ;
28+ } ) ;
1929// app.use(requireHTTPS) // removed because app servers don't handle https
2030// app.use(express.static(__dirname))
2131app . use ( express . static ( path . join ( __dirname , 'build' ) ) )
You can’t perform that action at this time.
0 commit comments