Skip to content

Commit deae34b

Browse files
committed
Restrict even more our Content-Security-Policy
1 parent f344379 commit deae34b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gha_logs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ async fn process_logs(
207207
.header(CONTENT_TYPE, "text/html; charset=utf-8")
208208
.header(
209209
CONTENT_SECURITY_POLICY,
210-
format!("script-src 'nonce-{nonce}' 'self'"),
210+
format!(
211+
"default-src 'none'; script-src 'nonce-{nonce}' 'self'; style-src 'unsafe-inline'; img-src www.rust-lang.org"
212+
),
211213
)
212214
.body(Body::from(html))?);
213215
}

0 commit comments

Comments
 (0)