Skip to content

Commit de20f73

Browse files
committed
Auto merge of #2519 - JohnTitor:csp, r=jtgeibel
Allow some google-related domains to fix CSP errors Seems 2ae350d added the use of google fonts but our CSP config doesn't allow that. Fixes #2518 r? @jtgeibel or @Turbo87
2 parents 6c3efa2 + 38758b3 commit de20f73

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
@@ -156,7 +156,7 @@ http {
156156
add_header X-Content-Type-Options "nosniff";
157157
add_header X-Frame-Options "SAMEORIGIN";
158158
add_header X-XSS-Protection "1; mode=block";
159-
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'";
159+
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 https://www.gstatic.com; style-src 'self' 'unsafe-inline' https://www.google.com https://ajax.googleapis.com https://fonts.googleapis.com; font-src: https://fonts.gstatic.com; img-src *; object-src 'none'";
160160

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

0 commit comments

Comments
 (0)