SVG turned black

Hey there,

I coded this piece to return either a file object or inline SVG code, which lives inside a plugin’s page method. $content holds the SVG/XML string which is valid:

if (F::write(A::join([$path, $filename . '.svg'], '/'), $content)) {
    $file = new File([
        'parent' => $this,
        'filename' => $filename . '.svg'

    if (option('me.myplugin.inline') === true) {
        return svg($file);

    return $file;

Now … the file gets created and looks as expected. However, when inline is true, the returned SVG code is identical, but shows as big black circle (instead of being colorful). Any ideas are appreciated!


Alright - CSP violation …