Chris Raible fb6040fd0c Fixed "View site" and post previews in Ghost Admin (#60)
* Fixed "View site" and post previews in Ghost Admin

ref https://linear.app/ghost/issue/ONC-1097/preview-post-does-not-work-on-separate-ghostadmin-domains
ref https://linear.app/ghost/issue/ONC-1090/oss-issue-previewing-site-from-subdomain-admin-panel-results-in

In Ghost Admin, the frontend of the site is loaded in an iframe in a few places:
- The "View site" tab on the sidebar
- In post previews

Using the default docker setup in this repository, these iframes fail to load because of the `X-Frame-Options DENY` header that is added by Caddy. This fixes the problem by replacing `X-Frame-Options DENY` with a Content Security Policy that allows the site to be embedded in an iframe on the site's domain itself and on the admin domain, if configured.

* Update SecurityHeaders

Spaces -> Tabs

---------

Co-authored-by: James Loh <git@jloh.co>
2025-08-18 12:13:11 -07:00
2025-07-15 11:40:53 +10:00
2025-08-04 16:34:45 +01:00
2025-06-25 15:44:39 +10:00
2025-08-08 18:09:56 +00:00
2025-05-27 16:23:47 +01:00

Ghost Docker

Configuration to run Ghost and its services with Docker Compose

Copyright & License

Copyright (c) 2013-2025 Ghost Foundation - Released under the MIT license.

Description
No description provided
Readme MIT 315 KiB
Languages
Shell 85.9%
JavaScript 12.4%
Dockerfile 1.7%