Skip to content

Commit 1875271

Browse files
committed
Update nginx.conf
1 parent a8c0796 commit 1875271

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
server {
2+
add_header X-Frame-Options "SAMEORIGIN";
3+
add_header X-XSS-Protection "1; mode=block";
4+
add_header X-Content-Type-Options "nosniff";
5+
16
location / {
27
# try to serve file directly, fallback to rewrite
38
try_files $uri @rewriteapp;
@@ -12,4 +17,5 @@ location ~ ^/index\.php(/|$) {
1217
try_files @heroku-fcgi @heroku-fcgi;
1318
# ensure that /index.php isn't accessible directly, but only through a rewrite
1419
internal;
20+
}
1521
}

0 commit comments

Comments
 (0)