You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is incorrect. You can use:
var image = new Image();
image.crossOrigin = "*" // or crossOrigin = "anonymous"
image.src = "https://picsum.photos/300/500"; // try it, this works!
The only caveat is that credentials are omitted, but I think that's acceptable.
The text was updated successfully, but these errors were encountered:
Here:
var image = new Image();
image.src = "https://webglfundamentals.org/webgl/resources/leaves.jpg"; // MUST BE SAME DOMAIN!!!
This is incorrect. You can use:
var image = new Image();
image.crossOrigin = "*" // or crossOrigin = "anonymous"
image.src = "https://picsum.photos/300/500"; // try it, this works!
The only caveat is that credentials are omitted, but I think that's acceptable.
The text was updated successfully, but these errors were encountered: