fix: allow external CDN and font sources in Content-Security-Policy header
This commit is contained in:
@@ -130,7 +130,7 @@ where
|
|||||||
let _ = headers.insert(
|
let _ = headers.insert(
|
||||||
actix_web::http::header::CONTENT_SECURITY_POLICY,
|
actix_web::http::header::CONTENT_SECURITY_POLICY,
|
||||||
actix_web::http::header::HeaderValue::from_static(
|
actix_web::http::header::HeaderValue::from_static(
|
||||||
"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; frame-ancestors 'none'"
|
"default-src 'self'; script-src 'self' https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; img-src 'self' data: https:; connect-src 'self'; frame-ancestors 'none'"
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user