Skip to main content
Gaureshk_Kodag
Adobe Employee
Adobe Employee
Nov 28, 2022 12:39 PM UTC
Solved

Set AMCV cookie as httpOnly cookie

Hey Community,

Is there any way to set AMCV cookie as httpOnly cookie? 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Avinash_Gupta_
Avinash_Gupta_Accepted solution
Adobe Champion and Community Advisor
Nov 28, 2022 3:58 PM UTC

Hi @gaureshk_kodag You can make the AMCV cookie secure by adding the below snippet of code

 

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{

        //Set secure cookie property
        secureCookie: true
 });

 

Refer to this article that discuss about how you can make the entire cookies generated by Adobe Secure and httpOnly.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/secure-cookies-httponly-secure/m-p/328929 

 

Hope this helps.

3 replies

Avinash_Gupta_
Adobe Champion and Community Advisor
Avinash_Gupta_Adobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
Nov 28, 2022 3:58 PM UTC

Hi @gaureshk_kodag You can make the AMCV cookie secure by adding the below snippet of code

 

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{

        //Set secure cookie property
        secureCookie: true
 });

 

Refer to this article that discuss about how you can make the entire cookies generated by Adobe Secure and httpOnly.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/secure-cookies-httponly-secure/m-p/328929 

 

Hope this helps.

Translate
Gaureshk_Kodag
Adobe Employee
Adobe Employee
Nov 29, 2022 5:14 AM UTC

thanks a lot @avinash_gupta_,. this is helpful.

Translate
Urs_Boller
Community Advisor
Community Advisor
Nov 29, 2022 9:50 AM UTC

additional information: If you use Adobe Launch for the configuration, just add the secure in the extension settings: https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/client/id-service/overview.html?lang=en#variables

Translate