Update content-security-policy.

This commit is contained in:
Josh Matthews 2020-03-20 15:40:55 -04:00
parent 0fef1bfbec
commit 19216627d3
7 changed files with 16 additions and 6 deletions

View file

@ -39,7 +39,7 @@ bitflags = "1.0"
bluetooth_traits = {path = "../bluetooth_traits"}
canvas_traits = {path = "../canvas_traits"}
caseless = "0.2"
content-security-policy = {version = "0.3.0", features = ["serde"]}
content-security-policy = {version = "0.4.0", features = ["serde"]}
cookie = "0.11"
chrono = "0.4"
crossbeam-channel = "0.4"

View file

@ -460,6 +460,7 @@ impl HTMLScriptElement {
&text,
) == csp::CheckResult::Blocked
{
warn!("Blocking inline script due to CSP");
return;
}