From 11f0fe14d3548c8dcae2e6ffb7872086efae7df6 Mon Sep 17 00:00:00 2001 From: zhuyj17 Date: Mon, 10 Dec 2018 00:00:29 +0800 Subject: [PATCH] add header into nginx to defend clickjacking --- conf/nginx_docklet.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nginx_docklet.conf b/conf/nginx_docklet.conf index 3e75daf..aa3d0a1 100644 --- a/conf/nginx_docklet.conf +++ b/conf/nginx_docklet.conf @@ -3,6 +3,7 @@ server listen %NGINX_PORT; server_name nginx_docklet.conf; charset UTF-8; + add_header X-Frame-Options SAMEORIGIN; merge_slashes off; rewrite (.*)//+(.*) $1/$2 permanent; index index.html index.htm;