Skip to content

Commit 3969f6a

Browse files
committed
Added isLocal() check to ImageLoader, so we don't set crossOrigin when loading local images.
1 parent 6be65cf commit 3969f6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/preloadjs/loaders/ImageLoader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ this.createjs = this.createjs || {};
9191
return;
9292
}
9393

94-
if (this._preferXHR && this._item.crossOrigin != null) {
94+
if (!createjs.RequestUtils.isLocal(this._item.src) && this._item.crossOrigin != null) {
9595
this._tag.crossOrigin = this._item.crossOrigin;
9696
}
97+
9798
this.AbstractLoader_load();
9899
};
99100

0 commit comments

Comments
 (0)