I
I
Igness_Music2015-11-26 09:57:28
JavaScript
Igness_Music, 2015-11-26 09:57:28

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

1 answer(s)
A
Alexander Taratin, 2015-11-26
@Igness_Music

The image must be from the same domain as the rest of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question