Skip to content

Commit

Permalink
Make Content-Security-Policy disallow 'object-src' by default
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jun 28, 2021
1 parent b9ef881 commit 8600df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ http {
# Add Content-Security-Policy for HTML documents.
# h5bp/security/content-security-policy.conf
map $sent_http_content_type $content_security_policy {
~*text/(html|javascript)|application/pdf|xml "default-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests";
~*text/(html|javascript)|application/pdf|xml "default-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; object-src 'none'; upgrade-insecure-requests";
}

# Add Referrer-Policy for HTML documents.
Expand Down

0 comments on commit 8600df1

Please sign in to comment.