AEM ‘Do Not Track’ Cookie Setting (AEM Granite Opt-Out Service)

We had an issue with cookies when we set from Servlets in AEM. If the “Do Not Track” setting is enabled in the browser, servlets (deployed in AEM) wasn’t setting the cookies in the browser. We solved this problem by whitelisting the cookies in “Adobe Granite Opt-Out Service” setting in the Apache Felix configuration manager.

Here is the screen shot. The cookies added to White-list cookies will ignore the “Do Not Track” header.

Though Adobe has provided the information in one of the documents (link below), there is not enough information available on how to resolve the issue. hence adding it here.

https://docs.adobe.com/docs/en/cq/current/developing/components/cookie-optout.html

donottrack

One response to “AEM ‘Do Not Track’ Cookie Setting (AEM Granite Opt-Out Service)”

  1. Antoine Avatar
    Antoine

    Thanks a lot, this post save me a lot of time !

Leave a reply to Antoine Cancel reply