Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Missing Cookie data in doPost() at SlingHttpServletRequest request

Avatar

Level 2

In my AEM application I'm able to fetch the cookie(while landing the home page application) but in SlingHttpServletRequest I'm not able to get SlingHttpServletRequest.getCookie("MypropertyValue") in my dopost method. Can some one kindly please advise solution for the above problem

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Community Advisor

@AshokThota Check when you are invoking this request, do you still have that cookie or not. 

Avatar

Community Advisor

If the request is passing through cdn and dispatcher, can check if cookie header is allowed

Avatar

Correct answer by
Community Advisor