Nginx docs: add 'unsafe-inline' to CSP header (to allow avatars to be loaded)

This commit is contained in:
Baptiste Gelez 2018-10-31 14:56:17 +01:00
parent 2e072affb5
commit 8e8aae17b1

View File

@ -274,7 +274,7 @@ server {
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'self'; frame-src https:";
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'; frame-ancestors 'self'; frame-src https:";
location ~* \.(jpg|jpeg|png|gif|ico|js|pdf)$ {
add_header Cache-Control "public";