Fetch inline SVGs

Have same issue as this thread "Access has been blocked by CORS policy" when loading SVG from prismic - #2 by Pau where I'm trying to fetch an SVG file but rejected by CORS. Tried both requesting from AWS's address and Prismic CDN lead to problem where No 'Access-Control-Allow-Origin' header is present on the requested resource.
What would be the best way to get uploaded SVG files rendered as inline with React? Can prismic possibly returned text for SVG files so that clients do not have to fetch individual file? Or add additional CORS header to the CDN?

A post was merged into an existing topic: "Access has been blocked by CORS policy" when loading SVG from prismic