Fixing CSP for my slides.
This commit is contained in:
parent
c8a1b5834c
commit
5b9c0d2f3c
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue