| Index: Source/core/loader/PingLoader.cpp
|
| diff --git a/Source/core/loader/PingLoader.cpp b/Source/core/loader/PingLoader.cpp
|
| index 780587c72f213f71b28e2704c18801851def916d..8ff904d76c2b0745e4e19d0a66d1e8c1bf12de86 100644
|
| --- a/Source/core/loader/PingLoader.cpp
|
| +++ b/Source/core/loader/PingLoader.cpp
|
| @@ -66,6 +66,7 @@ void PingLoader::loadImage(LocalFrame* frame, const KURL& url)
|
| request.setTargetType(ResourceRequest::TargetIsPing);
|
| request.setHTTPHeaderField("Cache-Control", "max-age=0");
|
| frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
|
| + frame->loader().fetchContext().setFirstPartyForCookies(request);
|
|
|
| FetchInitiatorInfo initiatorInfo;
|
| initiatorInfo.name = FetchInitiatorTypeNames::ping;
|
| @@ -82,6 +83,7 @@ void PingLoader::sendLinkAuditPing(LocalFrame* frame, const KURL& pingURL, const
|
| request.setHTTPBody(FormData::create("PING"));
|
| request.setHTTPHeaderField("Cache-Control", "max-age=0");
|
| frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
|
| + frame->loader().fetchContext().setFirstPartyForCookies(request);
|
|
|
| RefPtr<SecurityOrigin> pingOrigin = SecurityOrigin::create(pingURL);
|
| // addAdditionalRequestHeaders() will have added a referrer for same origin requests,
|
| @@ -109,6 +111,7 @@ void PingLoader::sendViolationReport(LocalFrame* frame, const KURL& reportURL, P
|
| request.setHTTPContentType(type == ContentSecurityPolicyViolationReport ? "application/csp-report" : "application/json");
|
| request.setHTTPBody(report);
|
| frame->loader().fetchContext().addAdditionalRequestHeaders(frame->document(), request, FetchSubresource);
|
| + frame->loader().fetchContext().setFirstPartyForCookies(request);
|
|
|
| FetchInitiatorInfo initiatorInfo;
|
| initiatorInfo.name = FetchInitiatorTypeNames::violationreport;
|
|
|