Hi, this is my first post so first I want to thank mrdoob and all the contributors for this fantastic library.
Description of the problem
I need to send specific headers with my TextureLoader request (XMLHttpRequest.setRequestHeader()) but I do not see any way to do that (I’m currently using r80).
Three.js version
- r80
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- Linux
- Android
- IOS
As I wrote,
ImageLoader
called byTextureLoader
no longer usesFileLoader
and usesimg.src = uri
instead because of #10439.That means there’s no way to set headers for texture even if we add
setRequestHeader()
method to loaders now.(Please see the latest revision, not r80)
I’d suggest that we add
setRequestHeader()
toFileLoader
(I’m gonna make PR soon) andyou override
ImageLoader.load()
to useFileLoader
in it by yourself on your environment so farif you wanna keep using existing
TextureLoader
.(Refer to e7f7d33 to revert)