Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported

I am getting error mentioned in the title, i have tried all the solution, but when manually edit the video tag of the linkedln learning by adding crossOrigin = 'Anonymous' and then executing below code i am able download screenshot, but when add this code player.setAttribute(crossOrigin,'Anonymous'); then i am getting error.

Please could anyone tell the possible solution,

    const title = "untitled";
    const player = document.getElementsByTagName("video")[0];
    const canvas = document.createElement("canvas");
    canvas.width = player.videoWidth;
    canvas.height = player.videoHeight;
    canvas.getContext("2d").drawImage(player, 0, 0, canvas.width, canvas.height);

    const downloadElement = document.createElement("a");
    downloadElement.download = title;

    canvas.toBlob((blob) => {
        downloadElement.href = URL.createObjectURL(blob);
        downloadElement.click();
    }, "image/png");
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda