Amazon S3 CORS issue with SVG on All major browser

I have correctly setup S3 ( I believe so !! ) because other images, and webfonts are correctly loading from S3. However, in my HTML design, I have this –

<svg><use xlink:href="assets/img/i.svg#i-facebook"></use></svg>

Somehow, it is not loading on all browsers ( I have tested on Chrome and Firefox ). On chrome it gives a error atleast, firefox dismisses it silently.

I have just found one similar resource – https://github.com/jonathantneal/svg4everybody/issues/16.

How to get past this issue.

11 thoughts on “Amazon S3 CORS issue with SVG on All major browser”

Leave a Comment