Skip to content

Correctly use request's origin when determining same origin requests #18147

Closed

Description

@KiChjang

In #17521, under the http_redirect_fetch step 7, we are still using the request's current URL's origin when making a comparison with the location URL's origin. This is incorrect, but when using the following (correct) code of comparing the origins:

let same_origin = match request.origin {
    Origin::Origin(ref origin) => *origin == location_url.origin,
    Origin::Client => false,
};

we encountered some WPT failures due to the code having an origin that is not what the WPT expects.

Activity

  1. added
    I-wrong
    on Aug 18, 2017
  2. added 5 commits that reference this issue on Oct 14, 2017
    05c277e
    7c32d24
    bcb29f4
    4a39fc8
  3. added a commit that references this issue on Nov 15, 2017
    c988460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-networkI-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions