Skip to content

Commit 3690d32

Browse files
authored
CSP: Add https://raw.githubusercontent.com to connect-src` (#12071)
This is apparently needed for the workflow file verification to work on staging and production.
1 parent 6e7cea7 commit 3690d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl Server {
189189
// the `script` in `public/github-redirect.html`
190190
let content_security_policy = format!(
191191
"default-src 'self'; \
192-
connect-src 'self' *.ingest.sentry.io https://docs.rs https://play.rust-lang.org {cdn_domain}; \
192+
connect-src 'self' *.ingest.sentry.io https://docs.rs https://play.rust-lang.org https://raw.githubusercontent.com {cdn_domain}; \
193193
script-src 'self' 'unsafe-eval' 'sha256-n1+BB7Ckjcal1Pr7QNBh/dKRTtBQsIytFodRiIosXdE=' 'sha256-dbf9FMl76C7BnK1CC3eWb3pvsQAUaTYSHAlBy9tNTG0='; \
194194
style-src 'self' 'unsafe-inline' https://code.cdn.mozilla.net; \
195195
font-src https://code.cdn.mozilla.net; \

0 commit comments

Comments
 (0)