Image url downloads the image instead of displaying it

后端 未结 3 1878
[愿得一人]
[愿得一人] 2021-01-17 12:32

I just switched the site from my working files to the server.

It worked fine when I uploaded it to my portfolio but once it was on the correct domain it stopped work

3条回答
  •  没有蜡笔的小新
    2021-01-17 13:08

    Is your server sending the .svg file down with the correct MIME type? It should be image/svg+xml.

    See Nginx offers of downoload SVG instead of showing it for another question along the same lines.

提交回复
热议问题