I am trying to serve a svg map using:
In my case the issuer was the deployment with nginx+gunicorn. My nginx docker image served the text/plain mimetype for .svg file. This extension of mime.types resolved the issue:
http { include mime.types; types { image/svg+xml svg; }