Add X-Frame-Options header to nginx

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI
2019-07-01 22:17:09 +02:00
parent 01adb70614
commit d7daa197a8

View File

@@ -72,6 +72,7 @@ webroot of your nginx installation. In this example it is
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
add_header X-Frame-Options "SAMEORIGIN";
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
@@ -169,6 +170,7 @@ webroot of your nginx installation. In this example it is
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
add_header X-Frame-Options "SAMEORIGIN";
# Optional: Don't log access to assets
access_log off;
@@ -223,6 +225,7 @@ your nginx installation.
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
add_header X-Frame-Options "SAMEORIGIN";
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
@@ -320,6 +323,7 @@ your nginx installation.
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
add_header X-Frame-Options "SAMEORIGIN";
# Optional: Don't log access to assets
access_log off;