How to

This page lists the how-to guides for HTML.

How to use <img> with cross-origin images and <canvas>

HTML provides a crossorigin attribute for images that, in combination with an appropriate CORS header, allows images defined by the <img> element that are loaded from foreign origins to be used in a <canvas> as if they had been loaded from the current origin.