Skip to content

Commit 72b2f01

Browse files
jtgeibellocks
authored andcommitted
Add 'unsafe-inline' for style-src CSP
1 parent c301a86 commit 72b2f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ http {
142142
add_header X-Content-Type-Options "nosniff";
143143
add_header X-Frame-Options "SAMEORIGIN";
144144
add_header X-XSS-Protection "1; mode=block";
145-
add_header Content-Security-Policy "default-src 'self'; connect-src 'self' https://docs.rs https://<%= s3_host(ENV) %>; script-src 'self' 'unsafe-eval' https://www.google.com; style-src 'self' https://www.google.com https://ajax.googleapis.com; img-src *; object-src 'none'";
145+
add_header Content-Security-Policy "default-src 'self'; connect-src 'self' https://docs.rs https://<%= s3_host(ENV) %>; script-src 'self' 'unsafe-eval' https://www.google.com; style-src 'self' 'unsafe-inline' https://www.google.com https://ajax.googleapis.com; img-src *; object-src 'none'";
146146

147147
add_header Strict-Transport-Security "max-age=31536000" always;
148148
add_header Vary 'Accept, Accept-Encoding, Cookie';

0 commit comments

Comments
 (0)