---
title: "Introduction"
manual: "Maagitcookie"
version: "main"
permalink: "https://docs.typo3.org/permalink/maagit/maagitcookie:introduction@main"
source: "Introduction/Index.rst"
rendered: "2026-11-19T19:59:23+00:00"
---

# Introduction {#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 {#introduction-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.

![Consent bar on the fictional demonstration page before a choice](../Images/Frontend/ConsentBar.png)

![Consent settings with necessary and optional categories](../Images/Frontend/ConsentSettings.png)

> [!NOTE]
> The bundled template currently uses the JavaScript locale key `de`.
> Multilingual behaviour must be verified for the actual site languages.
