new security headers, recommended by ZAP scan #29
This commit is contained in:
parent
a86fc49145
commit
7b367cad23
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,14 @@ server {
|
||||||
root /var/www;
|
root /var/www;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
add_header Cross-Origin-Embedder-Policy require-corp;
|
||||||
|
add_header Cross-Origin-Resource-Policy same-origin;
|
||||||
|
add_header Cross-Origin-Opener-Policy same-origin;
|
||||||
|
add_header Referrer-Policy no-referrer;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-Frame-Options deny;
|
||||||
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /etc/nginx/location.d/*.conf;
|
include /etc/nginx/location.d/*.conf;
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue