Перейти к основному содержимому

Consent & cookies

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Admin & Privacy · Tier: light · Risk: medium — consent bugs cause non-compliant cookie writes

Client-side consent state and a consent banner component that gate any cookie or storage write, satisfying ePrivacy/TDDDG consent requirements.

When to use: Use before writing any non-essential cookie or client-side tracking value that requires prior user consent.

Docs

Code

Proof


Machine-readable record: admin-privacy-consent-cookies in mcp/patterns.registry.json.

← Back to Pattern Library

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв