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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 1801513003: Cross origin requests to same origin should match Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing CORS tests Created 4 years, 9 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/core/html/parser/PreloadRequest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
index 8093323e3e45cd3131889357fbaa15efb87494b4..9e40e54416e6574016ec2538d1495d8c4fdb562a 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
@@ -41,8 +41,7 @@ FetchRequest PreloadRequest::resourceRequest(Document* document)
SecurityOrigin* securityOrigin = document->contextDocument()->getSecurityOrigin();
request.setCrossOriginAccessControl(securityOrigin, CrossOriginAttributeAnonymous);
}
- if (m_crossOrigin != CrossOriginAttributeNotSet)
- request.setCrossOriginAccessControl(document->getSecurityOrigin(), m_crossOrigin);
+ request.setCrossOriginAccessControl(document->getSecurityOrigin(), m_crossOrigin);
request.setDefer(m_defer);
request.setResourceWidth(m_resourceWidth);
request.clientHintsPreferences().updateFrom(m_clientHintsPreferences);

Powered by Google App Engine
This is Rietveld 408576698