@@ -17,22 +17,22 @@ function check () {
17
17
}
18
18
app . use ( healthCheck . middleware ( [ check ] ) )
19
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
- res . setHeader ( 'X-Frame-Options' , 'DENY' ) ;
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
+ res . setHeader ( 'X-Frame-Options' , 'DENY' )
27
27
res . setHeader ( 'Content-Security-Policy' ,
28
- "frame-ancestors 'none';" +
28
+ "frame-ancestors 'none';" +
29
29
"script-src 'report-sample' 'self' 'unsafe-inline' 'unsafe-eval'" +
30
30
' https://uni-nav.topcoder-dev.com' +
31
31
' https://uni-nav.topcoder.com'
32
- ) ;
32
+ )
33
33
34
- next ( ) ;
35
- } ) ;
34
+ next ( )
35
+ } )
36
36
// app.use(requireHTTPS) // removed because app servers don't handle https
37
37
// app.use(express.static(__dirname))
38
38
app . use ( express . static ( path . join ( __dirname , 'build' ) ) )
0 commit comments