Browse Source

changed nginx X-Frame-Option to SAMEORIGIN

Bachir Soussi Chiadmi 5 years ago
parent
commit
c892d4561a

+ 1 - 1
assets/vhosts/drupal-ssl.nginxconf

@@ -136,5 +136,5 @@ server {
   }
 
   # website should not be displayed inside a <frame>, an <iframe> or an <object>
-  add_header X-Frame-Options DENY;
+  add_header X-Frame-Options SAMEORIGIN;;
 }

+ 4 - 0
assets/vhosts/drupal.nginxconf

@@ -110,4 +110,8 @@ server {
       expires max;
       log_not_found off;
     }
+
+    # website should not be displayed inside a <frame>, an <iframe> or an <object>
+    add_header X-Frame-Options SAMEORIGIN;;
+
 }

+ 4 - 0
assets/vhosts/simple-phpfpm-ssl.nginxconf

@@ -59,4 +59,8 @@ server {
   location ~ /\.ht {
     deny all;
   }
+
+  # website should not be displayed inside a <frame>, an <iframe> or an <object>
+  add_header X-Frame-Options SAMEORIGIN;;
+
 }

+ 4 - 0
assets/vhosts/simple-phpfpm.nginxconf

@@ -35,4 +35,8 @@ server {
   location ~ /\.ht {
     deny all;
   }
+
+  # website should not be displayed inside a <frame>, an <iframe> or an <object>
+  add_header X-Frame-Options SAMEORIGIN;;
+
 }