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

181
Vistas
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 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