mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
fix #24367
This commit is contained in:
parent
4886788a8e
commit
b0a12f6a8a
1 changed files with 9 additions and 1 deletions
|
@ -1462,7 +1462,15 @@ fn http_network_fetch(
|
|||
_ => false,
|
||||
});
|
||||
|
||||
if !req_origin_in_timing_allow && !wildcard_present {
|
||||
let is_same_origin = request.url_list.iter().any(|url| match request.origin {
|
||||
SpecificOrigin(ref immutable_request_origin) => {
|
||||
url.clone().into_url().origin().ascii_serialization() ==
|
||||
immutable_request_origin.ascii_serialization()
|
||||
},
|
||||
_ => false,
|
||||
});
|
||||
|
||||
if !(is_same_origin || req_origin_in_timing_allow || wildcard_present) {
|
||||
context.timing.lock().unwrap().mark_timing_check_failed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue