forked from AFPy/infra
CSPs
This commit is contained in:
parent
1546584dfd
commit
cb128c25f2
|
@ -59,6 +59,12 @@
|
|||
add_header Strict-Transport-Security "max-age=63072000";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
}
|
||||
location ~ ^/2024/ {
|
||||
add_header Content-Security-Policy "default-src 'none'; object-src 'self'; frame-ancestors 'self'; form-action 'none'; base-uri 'none'; frame-src 'self' https://framacarte.org; font-src 'self'; img-src 'self' https://openstreetmap.fr; script-src 'self' 'unsafe-inline' https://framasoft.org https://framacarte.org; style-src 'self' 'unsafe-inline'";
|
||||
add_header Content-Security-Policy-Report-Only "default-src 'none'; object-src 'self'; frame-ancestors 'self'; form-action 'none'; base-uri 'none'; frame-src 'self' https://framacarte.org; font-src 'self'; img-src 'self' https://openstreetmap.fr; script-src 'self' https://framasoft.org https://framacarte.org; style-src 'self'";
|
||||
add_header Strict-Transport-Security "max-age=63072000";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
}
|
||||
# Prevent browsers from incorrectly detecting non-scripts as scripts
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
rewrite ^/2018/$ /2018/fr/index/ last;
|
||||
|
|
Loading…
Reference in New Issue