diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-03-25 13:33:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 13:33:23 -0400 |
commit | a9965db69fd32de7b8363972ffaa0622009f835b (patch) | |
tree | 9320f5d5be1ddcf44bec18b76991d18402486dba /components/net/fetch/methods.rs | |
parent | 2d055cbf6b8114bcc4f941b6f206f8e8014cc31a (diff) | |
parent | 19216627d3fff66f11b8cfac94eb80c1049027fb (diff) | |
download | servo-a9965db69fd32de7b8363972ffaa0622009f835b.tar.gz servo-a9965db69fd32de7b8363972ffaa0622009f835b.zip |
Auto merge of #26005 - jdm:hubs-csp, r=nox
Update content-security-policy.
This allows hubs.mozilla.org to load instead of panicking due to unimplemented CSP features.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24702
- [x] These changes do not require tests because we never enabled the CSP testsuite
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r-- | components/net/fetch/methods.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 7d641090649..191ea0cb41f 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -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(), ))) |