Missing Cookie data in doPost() at SlingHttpServletRequest request | Community
Skip to main content
Level 2
August 30, 2024
Solved

Missing Cookie data in doPost() at SlingHttpServletRequest request

  • August 30, 2024
  • 3 replies
  • 670 views

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

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

3 replies

Harwinder-singh
Community Advisor
Community Advisor
August 30, 2024

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

kaikubad
Community Advisor
Community Advisor
September 1, 2024

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 2, 2024