Index: third_party/WebKit/Source/modules/fetch/FetchManager.cpp |
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp |
index 6d563050f642adf9cc2ad430112cfbb30c7c561e..6fe0bdeff7e53fce6cf27c6a9aa0c7d99f828a50 100644 |
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp |
@@ -526,6 +526,8 @@ void FetchManager::Loader::performHTTPFetch(bool corsFlag, bool corsPreflightFla |
ResourceRequest request(m_request->url()); |
request.setRequestContext(m_request->context()); |
request.setHTTPMethod(m_request->method()); |
+ request.setFetchRequestMode(m_request->mode()); |
+ request.setFetchCredentialsMode(m_request->credentials()); |
const Vector<OwnPtr<FetchHeaderList::Header>>& list = m_request->headerList()->list(); |
for (size_t i = 0; i < list.size(); ++i) { |
request.addHTTPHeaderField(AtomicString(list[i]->first), AtomicString(list[i]->second)); |