You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CORS check compares strings, not URL components #6020
Let origin be the result of parsing Access-Control-Allow-Origin in response's header list.
…
If request's origin, serialized and utf-8 encoded, is not origin, return failure.
The corresponding code in Servo is in script::cors::allow_cross_origin_request:
But comparing (scheme, host, port) components of parsed URL is not necessarily the same as comparing a serialized URL to a string. Maybe AccessControlAllowOrigin::Value’s value should be a String rather than a parsed Url?
Activity
Manishearth commentedon May 12, 2015
cc me
snf commentedon May 13, 2015
Btw, we have this UrlHelper http://doc.servo.org/script/dom/urlhelper/struct.UrlHelper.html#method.SameOrigin
SimonSapin commentedon May 13, 2015
I don’t know if that either is equivalent to what the spec says.
Manishearth commentedon May 13, 2015
That uses https://html.spec.whatwg.org/multipage/browsers.html#same-origin, which treats origins as structured urls, not strings.
SimonSapin commentedon Jul 10, 2015
hyperium/hyper#526 was fixed in hyperium/hyper@ed45862 , which we’re picking up in #6591.
Auto merge of #6591 - servo:rustup_2015-07-10, r=pcwalton
Auto merge of #6591 - servo:rustup_2015-07-10, r=pcwalton
Auto merge of #6591 - servo:rustup_2015-07-10, r=pcwalton
Auto merge of #6591 - servo:rustup_2015-07-10, r=larsbergstrom