Skip to content

Commit

Permalink
[#255] Soften content-security-policy because somehow localzero.js is…
Browse files Browse the repository at this point in the history
… not recognized as an external script and therefore inline script errors occur
  • Loading branch information
cafischer committed Aug 25, 2023
1 parent d2ef588 commit c095421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server {
server_name monitoring.localzero.net monitoring-test.localzero.net;

client_max_body_size 100m;
add_header Content-Security-Policy "default-src 'self'";
add_header Content-Security-Policy "default-src 'self';script-src 'unsafe-inline' 'self'";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header Cache-Control "no-store";

Expand Down

0 comments on commit c095421

Please sign in to comment.