Troubleshooting
Fix the Safari iframe sandbox error caused by frame-ancestors and other common preview rendering issues.
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']
]
];