SVG <use xlink:href> from a CDN
问题 I am using the <use xlink:href> to reference my svg file. It works fine on my local but throws an error (CORS) when I reference it from a CDN. It looks as though the xlink:href doesn't allow the CORS request but I am wondering if there is any solution? On the other hand, I have heard that this sprite technique is deprecated on SVG2 . So what is the best solution to use sprite SVG file for now that works on all different browsers including mobile browsers. 回答1: The simplest cross-browser