CORSURLLoader uses network::ResourceRequest::request_initiator, but that ignores iframe sandboxing, because it is equivalent to blink::ResourceRequest::GetRequestorOrigin. See blink::FrameFetchContext::GetRequestorOrigin.
// If sandbox is enabled and allow-same-origin is not set in the attribute,
// |document|'s SecurityOrigin is set to the unique opaque origin, and
// FrameFetchContext::GetSecurityOrigin also respects the unique origin.
// But, we still need to set the unveiled document origin to the requestor
// origin. See also sandbox's spec;
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox.
Comment 1 by bugdroid1@chromium.org
, Jul 27