title: Canvas that created from video raising "Tainted canvases may not be exported." error when saving
body: <p>I'm creating snapshot from HTML5 video, using <a href="http://html5multimedia.com/code/ch9/video-canvas-screenshot.html" rel="nofollow">this example</a>. Video is hosted on 3rd party servers, that I can't control.</p>
  
  <p>So I wanted to save image, but <code>toDataURL</code> failing because of security reason.</p>
  
  <p>Here is error: <code>Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.</code></p>
  
  <p>I guess there is a solution for image. <code>img.crossOrigin = "Anonymous"</code> something like that. <a href="http://squired.co.uk/todataurl-fails-on-html5-canvas-with-embedded-image/" rel="nofollow">Here</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image" rel="nofollow">here</a>.</p>
  
  <p>I tried <code>videoDomElm.crossOrigin = "Anonymous"</code>, but no luck.</p>
  
  <p>Is there any solution for video?</p>
  
  <p>Thanks in advance.</p>