Skip to content

Commit f344379

Browse files
committed
Replace relative url with self in our CSP
1 parent c1d5dc4 commit f344379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gha_logs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ 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}' {ANSI_UP_URL}"),
210+
format!("script-src 'nonce-{nonce}' 'self'"),
211211
)
212212
.body(Body::from(html))?);
213213
}

0 commit comments

Comments
 (0)