Skip to content

Commit

Permalink
fix(nginx): trim csp
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Aug 31, 2021
1 parent 1dbca64 commit 119508b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ http {

add_header Content-Security-Policy "
base-uri 'none';
connect-src 'self' https://api.github.com/users/dargmuesli/repos?per_page=1 https://www.google-analytics.com;
connect-src 'self' https://api.github.com/users/dargmuesli/repos https://www.google-analytics.com;
default-src 'none';
font-src 'none';
form-action 'none';
Expand All @@ -52,7 +52,6 @@ http {
script-src 'self' https://static.cloudflareinsights.com/beacon.min.js https://www.google-analytics.com/analytics.js;
style-src 'self';
report-uri https://dargmuesli.report-uri.com/r/d/csp/enforce;
require-trusted-types-for 'script';
";
add_header NEL '{"report_to":"default","max_age":31536000,"include_subdomains":true}';
add_header Report-To '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://dargmuesli.report-uri.com/a/d/g"}],"include_subdomains":true}';
Expand Down

0 comments on commit 119508b

Please sign in to comment.