mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Change RequestInit origin type to ImmutableOrigin
This commit is contained in:
parent
104e0b4730
commit
6032940fb8
32 changed files with 173 additions and 529 deletions
|
@ -387,7 +387,7 @@ impl EventSource {
|
|||
// TODO: Step 9 set request's client settings
|
||||
let mut request = RequestInit {
|
||||
url: url_record,
|
||||
origin: global.get_url(),
|
||||
origin: global.origin().immutable().clone(),
|
||||
pipeline_id: Some(global.pipeline_id()),
|
||||
// https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request
|
||||
use_url_credentials: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue