why /j_security check not return login-token in response header? | Community
Skip to main content
rohitm58172886
Level 2
Jan 6, 2021 6:17 AM UTC
Solved

why /j_security check not return login-token in response header?

Scenario is I have Login form and I want to make request to /j_secirity_check which gives token in return. but in my case i called /j_security_check but its not setting 'set-cookie' in response header. I am not getting why /j_security check not return login-token in response header?

Note- AEM server is production server and author instance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jan 7, 2021 2:50 PM UTC

you can get token by simply calling /libs/granite/csrf/token.json

Does it work in lower environment? the login cookie is created when user is able to login successfully. Can you see login-token cookie? if yes then check if dispatcher is removing cookie header

 

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Jan 7, 2021 2:50 PM UTC

you can get token by simply calling /libs/granite/csrf/token.json

Does it work in lower environment? the login cookie is created when user is able to login successfully. Can you see login-token cookie? if yes then check if dispatcher is removing cookie header

 

Translate
Arun Patidar