mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Update content-security-policy.
This commit is contained in:
parent
0fef1bfbec
commit
19216627d3
7 changed files with 16 additions and 6 deletions
|
@ -203,6 +203,7 @@ pub fn main_fetch(
|
|||
|
||||
// Step 2.4.
|
||||
if should_request_be_blocked_by_csp(request) == csp::CheckResult::Blocked {
|
||||
warn!("Request blocked by CSP");
|
||||
response = Some(Response::network_error(NetworkError::Internal(
|
||||
"Blocked by Content-Security-Policy".into(),
|
||||
)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue