elm-community / elm-webgl

Moved to elm-explorations/webgl
http://package.elm-lang.org/packages/elm-explorations/webgl/latest
BSD 3-Clause "New" or "Revised" License
95 stars 22 forks source link

Enable CORS request on an image #31

Closed w0rm closed 8 years ago

w0rm commented 8 years ago

In order to load textures from a different domain, img.crossOrigin attribute has to be set.

FYI https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-crossorigin