I tried to find a clean way to embed SVGs into my project without triggering CORS, especially when the project is served via file://
. I am too lazy to lanch a localhost http server. here it is:
<!-- index.html (only ONE mention of icons.svg) -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Three coloured arrows</title>
<style>
svg { width: 48px; height: 48px; }