DrawerJs icon indicating copy to clipboard operation
DrawerJs copied to clipboard

fixedBackgroundUrl ignores crossOrigin setting

Open chryssalid opened this issue 7 years ago • 0 comments

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.

chryssalid avatar Sep 09 '19 22:09 chryssalid