Troubleshooting

Common issues and solutions for Kirby Live Preview.

This page covers common issues you might encounter when using Kirby Live Preview, along with solutions to get you back on track.

Sandbox Error in Safari

Safari enforces Content Security Policy (CSP) more strictly than other browsers. By default, Kirby's Panel sends frame-ancestors 'none', which causes Safari to treat the Live Preview iframe as sandboxed. This results in a blocking UI dialog:

Sandbox access violation: Blocked a frame at "https://…" from accessing a cross-origin frame. The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.

To fix this, allow the Panel to be framed by its own origin by adding frameAncestors to your config.php:

config.php
return [
    'panel' => [
        'frameAncestors' => ['self']
    ]
];