Skip to content

Commit

Permalink
Add CSP URL schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed May 31, 2024
1 parent b64fd61 commit 7a93c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async fn nonce_layer(State(state): State<AppState>, mut req: Request, next: Next
"default-src 'none'; object-src 'none'; img-src 'self'; \
connect-src v4.{base_dns_name} v6.{base_dns_name}; \
style-src 'nonce-{nonce_string}'; \
script-src 'nonce-{nonce_string}' 'unsafe-inline' 'strict-dynamic'; \
script-src 'nonce-{nonce_string}' 'unsafe-inline' 'strict-dynamic' http: https:; \
base-uri 'none';"
);
match HeaderValue::from_str(&csp_str) {
Expand Down

0 comments on commit 7a93c7c

Please sign in to comment.