Skip to content

Commit 3dc369c

Browse files
committed
Auto merge of #2522 - jtgeibel:fix-csp-font-src, r=jtgeibel
Fix font-src in CSP This removes an unnecessary `:` from `font-src` that was causing the directive to fail. r? @ghost cc #2519
2 parents 0d4f611 + ea067d5 commit 3dc369c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/nginx.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ http {
188188
add_header X-Frame-Options "SAMEORIGIN";
189189
add_header X-XSS-Protection "1; mode=block";
190190

191-
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'";
192-
add_header Access-Control-Allow-Origin "*";
191+
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'";
192+
add_header Access-Control-Allow-Origin "*";
193193

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

0 commit comments

Comments
 (0)