Several times I have opened SVG files located on various sites through a browser, and they were displayed as images.
Now, I copy this same SVG, I upload it to a remote host, and both Google Chrome and Firefox render XML code.
How do browsers determine whether to show an image or XML code?
Several times I have opened SVG files located on various sites through a browser,
Share
You have to configure your server to send you svg files with
Content-Type: image/svg+xmlheader. Here is an example on how to do this with Apache.