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 () {
16
16
return true
17
17
}
18
18
app . 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
+ } ) ;
19
29
// app.use(requireHTTPS) // removed because app servers don't handle https
20
30
// app.use(express.static(__dirname))
21
31
app . use ( express . static ( path . join ( __dirname , 'build' ) ) )
You can’t perform that action at this time.
0 commit comments