Index: Source/core/xml/XMLHttpRequest.cpp |
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp |
index d173c522bc6d67eb7b44572d4980ae953a30ff6a..578ba5880acb23c193edda9e8c7f3e0e9e81fcca 100644 |
--- a/Source/core/xml/XMLHttpRequest.cpp |
+++ b/Source/core/xml/XMLHttpRequest.cpp |
@@ -749,6 +749,7 @@ void XMLHttpRequest::createRequest(ExceptionCode& ec) |
options.sniffContent = DoNotSniffContent; |
options.preflightPolicy = uploadEvents ? ForcePreflight : ConsiderPreflight; |
options.allowCredentials = (m_sameOriginRequest || m_includeCredentials) ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
+ options.credentialsRequested = m_includeCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentials; |
options.crossOriginRequestPolicy = UseAccessControl; |
options.securityOrigin = securityOrigin(); |
options.initiator = cachedResourceRequestInitiators().xmlhttprequest; |