Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review

97700[BUGFIX] Allow workspace preview frames on other site hosts

Oli Bartsch CR 0 V 0 Normal +50 −2 updated 11/16/26, 22:39

Commit message

The workspace preview shows the live and the draft page in frames.
Their addresses come from the base of the site or language. When that
base uses another host than the backend, the browser blocked the frame,
because the backend Content-Security-Policy only allows frames of its
own origin. Editors saw the workspace bar above an empty frame.

The workspace preview now adds the origins of both frames to the
frame-src directive of its own response, as the Preview module already
does for its frame.

The draft frame shows the workspace version only where the backend
login reaches the host of the site. Elsewhere it shows the live page,
see #110664 for a preview that does not depend on the login cookie.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/00/97700/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/00/97700/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 2

Files 2

Review log 12

  1. Oli Bartsch uploaded patch set 1 11/16/26, 22:33

  2. core-ci voted on patch set 1 V +1 11/16/26, 22:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114647