Speed up same origin check for data URIs
This commit is contained in:
@@ -303,6 +303,9 @@ class HTML5HTTPRequest
|
|||||||
|
|
||||||
private static function __isSameOrigin(path:String):Bool
|
private static function __isSameOrigin(path:String):Bool
|
||||||
{
|
{
|
||||||
|
if (path == null || path == "") return true;
|
||||||
|
if (StringTools.startsWith(path, "data:")) return true;
|
||||||
|
|
||||||
if (originElement == null)
|
if (originElement == null)
|
||||||
{
|
{
|
||||||
originElement = Browser.document.createAnchorElement();
|
originElement = Browser.document.createAnchorElement();
|
||||||
|
|||||||
Reference in New Issue
Block a user