2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02:00

strip app level headers in nginx

This commit is contained in:
Frederik Ring 2019-10-17 15:16:56 +02:00
parent 69f6458674
commit 68bc2db5f1

View File

@ -28,10 +28,15 @@ http {
autoindex on;
root /www/data;
expires $expires;
proxy_hide_header Content-Security-Policy;
add_header Content-Security-Policy $csp;
proxy_hide_header Strict-Transport-Security;
add_header Strict-Transport-Security 'max-age=604800; includeSubDomains';
proxy_hide_header Referrer-Policy;
add_header Referrer-Policy 'origin-when-cross-origin';
proxy_hide_header X-Content-Type-Options;
add_header X-Content-Type-Options 'nosniff';
proxy_hide_header X-XSS-Protection;
add_header X-XSS-Protection '1; mode=block';
location /api/ {