Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 352313003: Make it possible to set the HTTP origin header from content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/FormSubmission.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 493bfcf05a555c09f191d02c07f625092cbd6be1..ec0690a739da243bf55f2f2bdf715eadeab179a5 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -75,7 +75,7 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
else if (!request.httpReferrer())
request.setHTTPReferrer(Referrer(outgoingReferrer, document->referrerPolicy()));
- FrameLoader::addHTTPOriginIfNeeded(request, AtomicString(outgoingOrigin));
+ request.addHTTPOriginIfNeeded(AtomicString(outgoingOrigin));
}
// The remaining modifications are only necessary for HTTP and HTTPS.
@@ -85,7 +85,7 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
m_frame->loader().applyUserAgent(request);
// Default to sending an empty Origin header if one hasn't been set yet.
- FrameLoader::addHTTPOriginIfNeeded(request, nullAtom);
+ request.addHTTPOriginIfNeeded(nullAtom);
}
void FrameFetchContext::setFirstPartyForCookies(ResourceRequest& request)
« no previous file with comments | « Source/core/loader/FormSubmission.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698