mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Change RequestInit origin type to ImmutableOrigin
This commit is contained in:
committed by
Fausto Núñez Alberro
parent
104e0b4730
commit
6032940fb8
@@ -253,7 +253,7 @@ fn fetch_a_classic_script(script: &HTMLScriptElement,
|
||||
Some(CorsSettings::Anonymous) => CredentialsMode::CredentialsSameOrigin,
|
||||
_ => CredentialsMode::Include,
|
||||
},
|
||||
origin: doc.url(),
|
||||
origin: doc.origin().immutable().clone(),
|
||||
pipeline_id: Some(script.global().pipeline_id()),
|
||||
referrer_url: Some(doc.url()),
|
||||
referrer_policy: doc.get_referrer_policy(),
|
||||
|
||||
Reference in New Issue
Block a user