Skip to content

Commit b7c26f2

Browse files
committed
tests sécurisation headers
1 parent 41e9d02 commit b7c26f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.docker/nginx.apps.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ server {
66
root /usr/share/nginx/html;
77

88
server_tokens off;
9-
10-
add_header X-Frame-Options DENY;
11-
add_header X-Content-Type-Options nosniff;
129

1310
location ~ /index.html|.*\.toml|.*\.json$ {
1411
expires -1;
1512
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
13+
add_header X-Frame-Options DENY;
14+
add_header X-Content-Type-Options nosniff;
1615
}
1716

1817
location ~ .*\.css$|.*\.js$ {

0 commit comments

Comments
 (0)