Skip to content

Commit 70c3219

Browse files
committed
Add headers for security
1 parent 39d98e9 commit 70c3219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/nginx.conf

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ http {
8989
proxy_hide_header X-Powered-By;
9090
fastcgi_hide_header X-Powered-By;
9191
server_tokens off;
92+
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
93+
add_header X-Frame-Options DENY;
94+
add_header X-Content-Type-Options nosniff;
95+
add_header X-XSS-Protection "1; mode=block";
9296

9397
gzip on;
9498
gzip_proxied any;

0 commit comments

Comments
 (0)