Speed up same origin check for data URIs

This commit is contained in:
Joshua Granick
2019-07-09 12:15:46 -07:00
parent a2e62f16a1
commit fcd8c19f83

View File

@@ -303,6 +303,9 @@ class HTML5HTTPRequest
private static function __isSameOrigin(path:String):Bool
{
if (path == null || path == "") return true;
if (StringTools.startsWith(path, "data:")) return true;
if (originElement == null)
{
originElement = Browser.document.createAnchorElement();