From 6a48a39da1ab22693aed354e0df84590915cf84b Mon Sep 17 00:00:00 2001 From: Pavel Jbanov Date: Fri, 9 May 2014 21:23:17 -0400 Subject: [PATCH] fix(http): use location.href instead of toString location.toString() fails when running with web_compomnents polyfill. --- lib/core_dom/http.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core_dom/http.dart b/lib/core_dom/http.dart index fdae907e8..72c9e7875 100644 --- a/lib/core_dom/http.dart +++ b/lib/core_dom/http.dart @@ -392,7 +392,7 @@ class Http { * the application document. */ bool _urlIsSameOrigin(String requestUrl) { - Uri originUrl = Uri.parse(_location.location.toString()); + Uri originUrl = Uri.parse(_location.location.href); Uri parsed = originUrl.resolve(requestUrl); return (parsed.scheme == originUrl.scheme && parsed.host == originUrl.host); }