Answer the question
In order to leave comments, you need to log in
How to fix Uncaught SecurityError: Failed to execute 'getImageData'?
I connected this plugin to create watermarks for images on the fly: www.patrick-wied.at/static/watermarkjs/jq
but when calling
$(document).watermark();
The console outputs the following:
Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
Tell me why this is happening.
Answer the question
In order to leave comments, you need to log in
The image must be from the same domain as the rest of the site.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question