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

Unified Diff: Source/core/loader/cache/CachedResourceRequest.cpp

Issue 18595008: Prevents sending of 'orgin' in the "Access-Control-Request-Headers" when preflight requests are mad… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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: Source/core/loader/cache/CachedResourceRequest.cpp
diff --git a/Source/core/loader/cache/CachedResourceRequest.cpp b/Source/core/loader/cache/CachedResourceRequest.cpp
index 9162ff5ef4d92eea941e05fbb113283b70ca264f..f807014b2b607dbf0c3b89be62b87c01464c4482 100644
--- a/Source/core/loader/cache/CachedResourceRequest.cpp
+++ b/Source/core/loader/cache/CachedResourceRequest.cpp
@@ -70,7 +70,7 @@ CachedResourceRequest::~CachedResourceRequest()
void CachedResourceRequest::setPotentiallyCrossOriginEnabled(SecurityOrigin* origin, StoredCredentials allowCredentials)
{
- updateRequestForAccessControl(m_resourceRequest, origin, allowCredentials);
+ updateRequestForAccessControl(m_resourceRequest, allowCredentials, origin);
ASSERT(m_options.requestOriginPolicy == UseDefaultOriginRestrictionsForType); // Allows only tightening from the default value.
m_options.requestOriginPolicy = PotentiallyCrossOriginEnabled;
}
« Source/core/loader/CrossOriginAccessControl.h ('K') | « Source/core/loader/TextTrackLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698