Fixing CSP for my slides.

This commit is contained in:
Julien Palard 2023-10-30 10:17:31 +01:00
parent c8a1b5834c
commit 5b9c0d2f3c
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,10 @@
include snippets/letsencrypt-mdk.fr.conf;
gzip_static on;
add_header Content-Security-Policy "default-src 'none'; font-src 'self'; script-src 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'; img-src 'self'; frame-ancestors 'none'";
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options "nosniff";
location /noindex/ {
autoindex off;
}
@ -94,12 +98,10 @@
}
location /python-avancé/ {
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options "nosniff";
}
location /python-initiation/ {
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options "nosniff";
}