Cross-scheme initiator should result in `Sec-Fetch-Site: cross-site`.
Before this CL, IsSameSite helper function in services/network/sec_header_helpers.cc would only compare |initiator|'s and |target_origin|'s hosts, which meant that a request with: - initiator = http://foo.example.com - target = https://foo.example.com would be sent with: Sec-Fetch-Site: same-site After this CL, IsSameSite also compares schemes (but not ports) to match Site Isolation's notion of a site and so the request above will use: Sec-Fetch-Site: cross-site Bug: 979257 Change-Id: I9b27a1118cdda8cfc02bf07ac697fc8d591d6b77 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680096Reviewed-by:Charlie Reis <creis@chromium.org> Reviewed-by:
Emily Stark <estark@chromium.org> Reviewed-by:
Mike West <mkwst@chromium.org> Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#676649}
Showing
Please register or sign in to comment