Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!