Answer the question
In order to leave comments, you need to log in
Embedded .svg image not showing on website?
there is a .svg file, it has a graphic + a .png picture
, you need to display this on the main screen of the site, BUT the embedded .png does not want to be displayed ...
If you just open this svg in the browser using the link - everything is ok (displayed as needed)
example below - should be 2 squares red(png) and blue(svg)
Answer the question
In order to leave comments, you need to log in
On MDN they say that this is a security issue (there is only about Gecko, but we can assume that this is the case everywhere). If SVG is used as an image, then it is no longer possible to load other external resources in it. Alternatively, you can use the embed tag instead of img, and everything will work without such restrictions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question