We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98340c5 commit 81d7ec2Copy full SHA for 81d7ec2
server.js
@@ -16,6 +16,16 @@ function check () {
16
return true
17
}
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
+});
29
// app.use(requireHTTPS) // removed because app servers don't handle https
30
// app.use(express.static(__dirname))
31
app.use(express.static(path.join(__dirname, 'build')))
0 commit comments