The example SVG: https://berthub.eu/trifecta/i/Tcp2y3TbBzU
doesn't execute the javascript when visited directly in any browser I tried. Does it make a difference if it's embedded in a html page?
doesn't execute the javascript when visited directly in any browser I tried. Does it make a difference if it's embedded in a html page?
Here it’s the CSP directive (Content-Security-Policy: script-src ‘none’) which is neutering it, as indicated by the comment your got the SVG from.
However from what I remember of my experiments script-src none can severely degrade SVGs even though they don’t use JS, because it affects some styling.
CORS is for allowing other origins to read resources (and send special requests/special headers). It's not really relevant here.
Bert blocked it from running when hosted on his domain a couple days ago https://github.com/berthubert/trifecta/commit/ed7a10d783dda2...