deuxhuithuit/craft-admin-panel-controllers

Adds controller to show the admin panel in headless mode

1.1.0 2024-08-13 18:14 UTC

This package is auto-updated.

Last update: 2024-11-13 18:54:40 UTC


README

Install

composer require deuxhuithuit/craft-admin-panel-controllers
./craft plugin/install admin-panel-controllers

It will add 3 endpoints:

  1. /actions/admin-panel-controllers/dashboard/redirect
  2. /actions/admin-panel-controllers/auth/check
  3. /actions/admin-panel-controllers/edit/redirect?site={entry.site}&uri={entry.uri}

For the auth check to work in headless mode, sameSiteCookieValue in general.php has to be set to none.