I am trying to use SVG icons as described here https://css-tricks.com/svg-use-with-external-reference-take-2/
(here is how it looks)
<!-- EXTERNAL reference -->
<svg>
<use xlink:href="sprite.svg#icon-1"></use>
</svg>
it works for me without any problem except if I open html file locally in Chrome.
in dev tools it shows this error:
Unsafe attempt to load URL file:///D:/path/to/file/icon-defs.svg#icon-rocket from frame with URL file:///D:/path/to/file/index.html. 'file:' URLs are treated as unique security origins.
is there any way around it? most of the time i use firefox so it is not a big problem for me but i am building documentation in html format that would be used by other users...