提交 b350f9da 编写于 作者: S Scott Andrews

Avoid defaulting crossOrigin attribute

Defaulting the crossOrigin attribute to 'anonymous' causes browsers to
not send credentials along with the request, even if the request is not
cross origin (at least with Chrome). A better default is to not set the
cross origin attribute, allowing browsers to behave normally. Users in a
cross origin environment can override this value.
上级 bf52d56f
......@@ -5,7 +5,7 @@
THREE.ImageUtils = {
crossOrigin: 'anonymous',
crossOrigin: undefined,
loadTexture: function ( url, mapping, onLoad, onError ) {
......
......@@ -17,7 +17,7 @@ THREE.Loader.prototype = {
constructor: THREE.Loader,
crossOrigin: 'anonymous',
crossOrigin: undefined,
addStatusElement: function () {
......@@ -138,7 +138,7 @@ THREE.Loader.prototype = {
};
image.crossOrigin = _this.crossOrigin;
if ( _this.crossOrigin !== undefined ) image.crossOrigin = _this.crossOrigin;
image.src = url;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册