Commit c5a36213 authored by Takashi Toyoshima's avatar Takashi Toyoshima Committed by Commit Bot

Reland "OOR-CORS, WebView: Add CORS tests for requests from custom schemes"

This is a reland of 6e293feb

Original change's description:
> OOR-CORS, WebView: Add CORS tests for requests from custom schemes
>
> Behaviors have been unclear, but if requests are made from a custom
> scheme, the Origin header in outgoing requests should be set to
> "<scheme>://" without containing the host:port part those are
> officially required to be a proper origin for such special cases
> in WebView.
> Servers can use "Access-Control-Allow-Origin: *" or
> "Access-Control-Allow-Origin: <scheme>://" to permit such accesses.
>
> This patch adds tests to verify these behaviors to keep compatible
> behaviors.
>
> Bug: 1035366
> Change-Id: Ia08e7b4ed764225566c3b09edef2980cfa1b1b70
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010591
> Reviewed-by: Richard Coles <torne@chromium.org>
> Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#735332}

Bug: 1035366
Change-Id: Ic63d48287fa789dfb1697426dd47168068a97127
TBR: torne@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024649Reviewed-by: default avatarTakashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735764}
parent 02e99e91
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment