| Index: third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| index d4830069f643e0b183069986e0f4e13af1dbf27d..1032702193fa0737e234365691cf2c7146b4b08e 100644
|
| --- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp
|
| @@ -165,6 +165,8 @@ bool WorkerFetchContext::IsControlledByServiceWorker() const {
|
| void WorkerFetchContext::PrepareRequest(ResourceRequest& request,
|
| RedirectType) {
|
| request.OverrideLoadingIPCType(WebURLRequest::LoadingIPCType::kMojo);
|
| + if (request.RequestorOrigin()->IsUnique())
|
| + request.SetRequestorOrigin(worker_global_scope_->GetSecurityOrigin());
|
| WrappedResourceRequest webreq(request);
|
| web_context_->WillSendRequest(webreq);
|
| }
|
|
|