title: Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data
body: <p>I am getting this error in Chrome and Opera Browsers:</p>
  
  <pre><code>Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
  </code></pre>
  
  <p>The code is working fine in Internet Explorer, Mozilla Firefox, and Safari. But I need to fix it in Chrome and Opera. Please help me to find a solution to fix this problem?</p>
  
  <p>I am getting this error at this line</p>
  
  <pre><code>imgData = ctx.getImageData(x1,y1,w,h);
  </code></pre>