mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
strip app level headers in nginx
This commit is contained in:
parent
69f6458674
commit
68bc2db5f1
@ -28,10 +28,15 @@ http {
|
|||||||
autoindex on;
|
autoindex on;
|
||||||
root /www/data;
|
root /www/data;
|
||||||
expires $expires;
|
expires $expires;
|
||||||
|
proxy_hide_header Content-Security-Policy;
|
||||||
add_header Content-Security-Policy $csp;
|
add_header Content-Security-Policy $csp;
|
||||||
|
proxy_hide_header Strict-Transport-Security;
|
||||||
add_header Strict-Transport-Security 'max-age=604800; includeSubDomains';
|
add_header Strict-Transport-Security 'max-age=604800; includeSubDomains';
|
||||||
|
proxy_hide_header Referrer-Policy;
|
||||||
add_header Referrer-Policy 'origin-when-cross-origin';
|
add_header Referrer-Policy 'origin-when-cross-origin';
|
||||||
|
proxy_hide_header X-Content-Type-Options;
|
||||||
add_header X-Content-Type-Options 'nosniff';
|
add_header X-Content-Type-Options 'nosniff';
|
||||||
|
proxy_hide_header X-XSS-Protection;
|
||||||
add_header X-XSS-Protection '1; mode=block';
|
add_header X-XSS-Protection '1; mode=block';
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
Loading…
Reference in New Issue
Block a user