Index: Source/core/page/EventSource.cpp |
diff --git a/Source/core/page/EventSource.cpp b/Source/core/page/EventSource.cpp |
index dc60773da15b6ea61fb28204b304c1f10ebe7b89..a9deb36a5595503b10472d255564a5eeb3021b75 100644 |
--- a/Source/core/page/EventSource.cpp |
+++ b/Source/core/page/EventSource.cpp |
@@ -131,6 +131,7 @@ void EventSource::connect() |
options.sendLoadCallbacks = SendCallbacks; |
options.sniffContent = DoNotSniffContent; |
options.allowCredentials = (origin->canRequest(m_url) || m_withCredentials) ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
+ options.credentialsRequested = m_withCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentials; |
options.preflightPolicy = PreventPreflight; |
options.crossOriginRequestPolicy = UseAccessControl; |
options.dataBufferingPolicy = DoNotBufferData; |