Cookie Management
The Cookie Management application allows users to give or withdraw their approval for storing specific values in the browser's storage. It presents a cookie banner and an optional modal, enabling users to specify their preferences for which categories of browser storage are acceptable to use.
How to install
Install as developer dependency
npm install -D @webprovisions-registry/alliance-app-cookie-management --registry https://registry.webprovisions.io
Add app to your Alliance configuration file.
ts// alliance.config.ts import { defineConfig } from '@telia-ace/alliance-framework/config'; export default defineConfig({ server: { apps: ['@webprovisions-registry/alliance-app-cookie-management'], }, });
Capabilities
modify-consent
Displays a modal window where the user can consent to which browser storage categories are allowed.
Example
ts
runCapability('cookie-management', 'modify-consent', {});
Args
Property | Type | Required | Default | Description |
---|---|---|---|---|
consent | ('necessary'|'functional'|'analytics'|'marketing')[] | No | Array of cookie categories to give consent to. |
Result
Property | Type | Description |
---|---|---|
confirmed | boolean | Whether the cookie consent was confirmed or not. |
Managed Objects
No available managed objects.