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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1665533003: Set the request mode and the credentials mode of FetchEvent in the service worker correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 24fa32ae594091785a8e681ad7b6d7243a493142..36014223a0e034e523beab8f9d8a2574753b2cee 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -429,10 +429,7 @@ void ResourceRequest::initialize(const KURL& url)
m_requestContext = WebURLRequest::RequestContextUnspecified;
m_frameType = WebURLRequest::FrameTypeNone;
m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
- // Contrary to the Fetch spec, we default to same-origin mode here, and deal
- // with CORS modes in updateRequestForAccessControl if we're called in a
- // context which requires it.
- m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeSameOrigin;
+ m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
m_referrerPolicy = ReferrerPolicyDefault;
m_loFiState = WebURLRequest::LoFiUnspecified;

Powered by Google App Engine
This is Rietveld 408576698