diff --git a/components/script/cors.rs b/components/script/cors.rs index 346f1119b25..b9794a3f1fa 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -77,7 +77,7 @@ impl CORSRequest { "about" if destination.path() == Some(&["blank".to_owned()]) => Ok(None), // As per (https://fetch.spec.whatwg.org/#main-fetch 5.1.9), data URLs can be fetched // the same as a basic request if the request's method is GET and the - // same-origin data-URL flag is set. + // same-origin data-URL flag is set. "data" if same_origin_data_url_flag && method == Method::Get => Ok(None), "http" | "https" => { let mut req = CORSRequest::new(referer, destination, mode, method, headers);