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

Review main Ready for review

97437[BUGFIX] Serve admin panel actions from the frontend origin

Oli Bartsch CR +1 V +1 Hard +467 −40 updated 11/15/26, 20:29

Commit message

The admin panel sent its actions (toggle, save settings, clear cache)
to backend routes. If BE/entryPoint points to another origin than
the frontend, these XHR calls were cross-origin: they carried no
backend session cookie, Core sends no CORS headers, and the actions
were not applied.

A frontend middleware now handles these actions as POST requests to
the current page. They are accepted only if the admin panel is
enabled for the backend user and a form protection token bound to
the action and its arguments is valid. Clearing caches uses the same
permission checks as the backend.

The now unused backend AJAX routes of the admin panel are removed.
Admin panel modules implementing OnSubmitActorInterface receive the
frontend request when the settings are saved.

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 3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/37/97437/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/37/97437/3 && git cherry-pick FETCH_HEAD

Review

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

Issues 2

Files 14

Review log 49

  1. Oli Bartsch uploaded patch set 1 11/09/26, 13:11

  2. core-ci voted on patch set 1 V -1 11/09/26, 13:25 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113683

  3. Oli Bartsch uploaded patch set 2 V -1 11/09/26, 14:11

  4. core-ci voted on patch set 2 V -1 11/09/26, 14:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113700

  5. core-ci voted on patch set 2 V +1 11/09/26, 15:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113700

  6. Oli Bartsch rebased onto patch set 3 V +1 11/11/26, 09:57

  7. core-ci voted on patch set 3 V -1 11/11/26, 10:34 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114034

  8. core-ci voted on patch set 3 V +1 11/14/26, 10:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114034

  9. Simon Schaufelberger voted on patch set 3 CR +1 V +1 11/15/26, 20:29