Introduction
Maagitcookie displays a consent bar and a detailed settings dialog. Consent categories contain one or more services. A category can be technically necessary, offered as an optional choice, and initially selected in the dialog.
When a service is not permitted, a frontend middleware can replace HTML that matches the service's regular expression. This permits integrations such as external scripts or embeds to remain blocked until the associated category is accepted. The configuration does not determine which services require consent; that classification and the visible legal text remain site responsibilities.
Operating model
Category and service records are stored on a selected TYPO3 page. The consent
content element loads those records, renders the bar/modal configuration, and
stores the visitor's selection in the cconsent browser cookie. Categories
marked Needed are always allowed. Other services are allowed only when the
current version-1 cookie explicitly contains wanted: true for the category.
The middleware processes successful, uncompressed HTML responses. It leaves other response types, HEAD requests, errors, redirects, and compressed output unchanged.
The consent bar appears after the configured delay when no current
cconsent cookie is present.
The settings dialog distinguishes the always-enabled necessary category from the optional anonymous-statistics category.
Note
The bundled template currently uses the JavaScript locale key de.
Multilingual behaviour must be verified for the actual site languages.