Add Interceptor to AEM project for handling cookies | Community
Skip to main content
RitendraS11
Level 4
October 12, 2022

Add Interceptor to AEM project for handling cookies

  • October 12, 2022
  • 1 reply
  • 859 views

 

I am looking to add an interceptor to allow/disallow the creation of any cookies on the AEM website.

Problem statement:

I have the website running on AEM and one third-party script is loaded and creates some cookies. Now, I don't want some cookies to be created under some business cases. Also, third-party scripts won't be able to accommodate it as the conditions are on the AEM website.

 

If there are any recommendations, please share! Thanks a lot for looking into my query!

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

TarunKumar
Community Advisor
Community Advisor
October 12, 2022

HI @ritendras11 

Please try configuring Adobe Granite Opt-Out Service in web console to specify how cookies are used on your web pages.
Here, you can whitelist and opt-out cookies.

RitendraS11
Level 4
October 12, 2022

Hi @tarunkumar - Thanks for the answer. Unfortunately, this won't work for me as I need to allow/disallow based on some conditions, and is going to be different for different cases. So, I am looking for an approach to go with some interceptor and need some advice.