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

257
Vistas
Safari content blocker blocks blob.arrayBuffer()

I have a file in input to send in a POST, to transform it in a JSON string I do this:

const buffer = await file.arrayBuffer();
const arrayContent = new Int8Array(buffer);
try {
    const resp = await fetch(url, {
      method: "POST",
      body: JSON.stringify(Array.from(arrayContent.values())),
    });

It works perfectly in every browser but Safari (desktop and mobile) when in production. It works in Safari even when in production but with content blocking disabled (not ad blocking, Safari default content blocking). I get this error in the browser console:

Cannot load blob:https://mysitedomain.com/string-of-alphanumerical-characters due to access control checks.

I get the error at the line doing file.arrayBuffer() method. I researched every question but I got nothing on this specific case. Any ideas?

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