mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -1371,7 +1371,7 @@ fn cors_check(request: &Request, response: &Response) -> Result<(), ()> {
|
|||
};
|
||||
|
||||
match request.origin {
|
||||
Origin::Origin(ref o) if o.ascii_serialization() == origin => {},
|
||||
Origin::Origin(ref o) if o.ascii_serialization() == origin.trim() => {},
|
||||
_ => return Err(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue