Sign in
Log inSign up

Cross Origin issue while using getImageData() on canvas.

Ankur Singh's photo
Ankur Singh
·Aug 27, 2019

I have attached an online video URL on my web page, and I'm taking a snapshot of the video by creating a canvas, now I'm trying to use getImageData() function to operate over that canvas. But I'm getting The canvas has been tainted by cross-origin data’ in HTML? error. How I can solve this?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct