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

183
Visualizações
How to avoid cross origin issues when prefetching svg files that are loaded with a request?

I try to prefetch some .svg files and then to request them and insert them into the DOM.

looks like prefetching succeeds but the request fails with cross-origin issues because the prefetch tag:

<link rel="prefetch" href="e11efd5ca0332441cf9887c504d647ae.svg?source=isvg">

does not demand cross-origin headers and when we make a reqeust from JS we get the cached response without them:

fetch('e11efd5ca0332441cf9887c504d647ae.svg?source=isvg', {cross-origin-headers})

I use Amazon S3 to store my files but i guess this is a more general issue.

here is the prefetch: prefetching

here is the fetch: fetching

about 4 years ago · Santiago Trujillo
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