klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

Fix compliance cookie not deleting if domain specified as .example.com

Open Caffe1neAdd1ct opened this issue 3 years ago • 0 comments

On deploying to our staging environment the compliance cookie was refusing to delete on clicking the reset consent button e.g:

klaro.getManager(klaroConfig).resetConsents(); klaro.show(klaroConfig);

The initial consent manager showed until the page was refreshed and the previous consent restored from the not-yet-deleted-cookie, resulting in non-compliance.

It was working fine on localhost but not staging.ourdomain.com with the "cookieDomain" set to ".staging.ourdomain.com".

I hope this is a relevant / good change, if good and you need the /dist/ contents regenerated and committed/pushed please let me know.

Caffe1neAdd1ct avatar Dec 03 '21 11:12 Caffe1neAdd1ct