Skip to content

Commit 29d187e

Browse files
committed
Add X-Frame-Options header to prevent clickjacking
1 parent c3427a4 commit 29d187e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ server {
22
listen 80;
33
charset utf-8;
44

5+
add_header X-Frame-Options DENY;
6+
57
location / {
68
root /var/www/html;
79
try_files $uri $uri/ /index.html;

0 commit comments

Comments
 (0)