Index: Source/core/loader/TextTrackLoader.cpp |
diff --git a/Source/core/loader/TextTrackLoader.cpp b/Source/core/loader/TextTrackLoader.cpp |
index 6f4ee8bb74f1f1cb62fc14e39eaa5b756a45c46d..d41673a400f5c84e6f0d10db8f8104b0da2c5e4f 100644 |
--- a/Source/core/loader/TextTrackLoader.cpp |
+++ b/Source/core/loader/TextTrackLoader.cpp |
@@ -157,7 +157,7 @@ bool TextTrackLoader::load(const KURL& url, const String& crossOriginMode) |
if (!crossOriginMode.isNull()) { |
m_crossOriginMode = crossOriginMode; |
StoredCredentials allowCredentials = equalIgnoringCase(crossOriginMode, "use-credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
- updateRequestForAccessControl(cueRequest.mutableResourceRequest(), document->securityOrigin(), allowCredentials); |
+ updateRequestForAccessControl(cueRequest.mutableResourceRequest(), allowCredentials, document->securityOrigin()); |
} else { |
// Cross-origin resources that are not suitably CORS-enabled may not load. |
if (!document->securityOrigin()->canRequest(url)) { |