Skip to content

Commit d0adef3

Browse files
committed
tests sécurisation headers
1 parent 8e60b56 commit d0adef3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.docker/nginx.apps.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,27 @@ server {
77

88
server_tokens off;
99

10-
add_header X-Frame-Options "SAMEORIGIN";
11-
1210
location ~ /index.html|.*\.toml|.*\.json$ {
1311
expires -1;
1412
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
13+
add_header X-Frame-Options "SAMEORIGIN";
1514
}
1615

1716
location ~ .*\.css$|.*\.js$ {
1817
add_header Cache-Control 'max-age=86400'; # 24h
18+
add_header X-Frame-Options "SAMEORIGIN";
1919
}
2020

2121
location ~ .*\.otf$|.*\.ttf$|.*\.woff2?$ {
2222
add_header Cache-Control 'max-age=31536000'; # 1year
23+
add_header X-Frame-Options "SAMEORIGIN";
2324
}
2425

2526
location / {
2627
try_files $uri $uri/ /index.html;
2728

2829
add_header Cache-Control 'max-age=86400'; # 24h
30+
add_header X-Frame-Options "SAMEORIGIN";
2931
}
3032

3133
error_page 500 502 503 504 /50x.html;

0 commit comments

Comments
 (0)