CORS issue with texture loader

I am working with OpenAI and need to fetch images from URL’s generated by DALL-e

If I put an img element in my HTML, I can set the src attribute of the element and it will load and display the image with no problem

But if i try to load the image using a three.js texture loader it fails with a CORS error. I have tried setting the cross origin attribute on the image to “anonymous” and to an empty string but neither helps.

Looking around on the internet some folks say this is an issue that might be fixed in a later version of three.js

Any advice would be much appreciated.

Original Post on Discord

by user 563549194137239552

Hm, CORS rules for fetch and for src= are the same, that would be strange