Allowing cross-origin use of images and canvas - HTML: HyperText Markup Language | MDN
HTML provides a crossorigin attribute for images that, in combination with an appropriate CORS header, allows images defined by the element that are loaded from foreign origins to be used in a as if they had been loaded from the current origin.