You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The top-level file nginx.conf defines lines for the Content-Security-Policy:
# Add Content-Security-Policy for HTML documents.
# h5bp/security/content-security-policy.conf
map $sent_http_content_type $content_security_policy {
~*text/html "script-src 'self'; object-src 'self'";
}
This is not practical since the $content_security_policy is different for each virtualhost domain and should be set at the virtual host file level instead of the top level nginx.conf.
The text was updated successfully, but these errors were encountered:
LeoColomb
changed the title
Content Security Policy should be configurable per virtual host instead of having it in the top level nginx.conf file
Content Security Policy should be configurable per virtual host
Mar 14, 2019
The top-level file nginx.conf defines lines for the Content-Security-Policy:
This is not practical since the $content_security_policy is different for each virtualhost domain and should be set at the virtual host file level instead of the top level nginx.conf.
The text was updated successfully, but these errors were encountered: