Use navigation initiator for calculating the `Origin` header's value.
Before this CL, AddAdditionalRequestHeaders would set the Origin header to either the destination origin (for main frame navigations) or to the main frame's origin (for subframe navigations). Both of these are wrong and don't match Blink behavior (which correctly uses the initiator of the navigation to calculate the Origin header's value). Bug: 915538 Change-Id: Ied0262462f7665d0004da3b298bf0618ae312aec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761051 Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Zhongyi Shi <zhongyi@chromium.org> Reviewed-by:
Avi Drissman <avi@chromium.org> Reviewed-by:
Nasko Oskov <nasko@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#689562}
Showing
Please register or sign in to comment