How to block first party cookies?

How to use the cookie whitelist to ensure cookies which aren’t in the whitelist are set

Use the JS Callback or API to get the cookie whitelist

  • Cookie whitelist format

{
cookies:
[
{ 'name': 'cookie_name', 'provider': 'termly.io', 'type': 'http_cookie' },
{ 'name': 'cookie_name', 'provider': 'termly.io', 'type': 'http_cookie' }
]
}
  • Modify your code such that prior to cookies being set, a check is performed to confirm the cookie is in the whitelist.