add header into nginx to defend clickjacking

This commit is contained in:
zhuyj17 2018-12-10 00:00:29 +08:00
parent f899a04252
commit 11f0fe14d3
1 changed files with 1 additions and 0 deletions

View File

@ -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;