[store-web] Deny loading shop.g.o from within an iframe (https://gitlab.gnome.org/Infrastructure/Infrastructure/



commit ae2bd04b0560358ad1a3875fd42099f51ce59429
Author: Andrea Veri <averi redhat com>
Date:   Wed Jun 23 15:24:19 2021 +0200

    Deny loading shop.g.o from within an iframe 
(https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/601)

 nginx.conf | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index f84eff3..e639624 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -74,5 +74,7 @@ http {
                 expires max;
                 log_not_found off;
         }
+
+        add_header X-Frame-Options "DENY" always;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]