Skip to content

Commit

Permalink
Expand responses to include CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Apr 13, 2020
1 parent de4564e commit 4168940
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 @@ -112,7 +112,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 "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'; upgrade-insecure-requests";
}

# Add Referrer-Policy for HTML documents.
Expand Down

0 comments on commit 4168940

Please sign in to comment.