Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

259
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda