Index: Source/core/html/HTMLLinkElement.cpp |
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp |
index 09d7978407ba205c56c5fc7c533bda8ad0a8d7ac..09090654a5a551a637101969c43b849f5858fe9d 100644 |
--- a/Source/core/html/HTMLLinkElement.cpp |
+++ b/Source/core/html/HTMLLinkElement.cpp |
@@ -692,10 +692,8 @@ void LinkStyle::process() |
// Load stylesheets that are not needed for the rendering immediately with low priority. |
FetchRequest request = builder.build(blocking); |
AtomicString crossOriginMode = m_owner->fastGetAttribute(HTMLNames::crossoriginAttr); |
- if (!crossOriginMode.isNull()) { |
- StoredCredentials allowCredentials = equalIgnoringCase(crossOriginMode, "use-credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
- request.setCrossOriginAccessControl(document().securityOrigin(), allowCredentials); |
- } |
+ if (!crossOriginMode.isNull()) |
+ request.setCrossOriginAccessControl(document().securityOrigin(), crossOriginMode); |
setResource(document().fetcher()->fetchCSSStyleSheet(request)); |
if (!resource()) { |