add header into nginx to defend clickjacking
This commit is contained in:
parent
f899a04252
commit
11f0fe14d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue