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.