By default, the Didomi CMP uses first-party cookies to store consent information. Consent is stored in the base domain and shared across all the sub-domains of the base domain where the SDK is deployed.

Example: If you install Didomi on, consents will be stored in a cookie on and all sub-domains of will have access to the same consent information.

Store consent on a different domain (sub domain)

If you want to store the first-party cookie on a specific sub-domain, you can add this option into the configuration.

Consents will be shared only to pages with this specific sub-domain.

window.didomiConfig = {
cookies: {
local: {
customDomain: ''