DrawerJs
DrawerJs copied to clipboard
fixedBackgroundUrl ignores crossOrigin setting
Method loadImageFromUrl creates image without taking into consideration if there was a crossOrigin setting in the options. As the result one will get a security error later if use an image from a different origin.
Proposed solution:
if (options.crossOrigin) {
image.crossOrigin = options.crossOrigin;
}
after onload set.