mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-21 23:32:39 +02:00
Add wasm-unsafe-eval to default csp script-src header
This commit is contained in:
@@ -172,7 +172,7 @@ async fn index(
|
||||
{
|
||||
let mut attrs = vec![
|
||||
"default-src 'self'".to_string(),
|
||||
format!("script-src 'self' 'nonce-{nonce_b64}'"),
|
||||
format!("script-src 'self' 'wasm-unsafe-eval' 'nonce-{nonce_b64}'"),
|
||||
"frame-ancestors 'none'".to_string(),
|
||||
];
|
||||
attrs.extend(csp.custom_attributes.iter().cloned());
|
||||
|
||||
Reference in New Issue
Block a user