@@ -19,16 +19,31 @@ server {
1919
2020 location ~ .*\.css$|.*\.js$ {
2121 add_header Cache-Control 'max-age=86400'; # 24h
22+ add_header X-Frame-Options DENY;
23+ add_header X-Content-Type-Options nosniff;
24+ add_header Referrer-Policy strict-origin;
25+ add_header Permissions-Policy "geolocation=(), microphone=(), camera=(), payment=()";
26+ add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
2227 }
2328
2429 location ~ .*\.otf$|.*\.ttf$|.*\.woff2?$ {
2530 add_header Cache-Control 'max-age=31536000'; # 1year
31+ add_header X-Frame-Options DENY;
32+ add_header X-Content-Type-Options nosniff;
33+ add_header Referrer-Policy strict-origin;
34+ add_header Permissions-Policy "geolocation=(), microphone=(), camera=(), payment=()";
35+ add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
2636 }
2737
2838 location / {
2939 try_files $uri $uri/ /index.html;
3040
3141 add_header Cache-Control 'max-age=86400'; # 24h
42+ add_header X-Frame-Options DENY;
43+ add_header X-Content-Type-Options nosniff;
44+ add_header Referrer-Policy strict-origin;
45+ add_header Permissions-Policy "geolocation=(), microphone=(), camera=(), payment=()";
46+ add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
3247 }
3348
3449 error_page 500 502 503 504 /50x.html;
0 commit comments