Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

CSRF Token not available without successful CRX login

Avatar

Level 1

Hi All,

We have to include the CSRF token as part of every ajax post request in our application. We embedded the  granite.csrf.standalone client libs and set the dispatcher rules also to allow url /libs/granite/csrf/token.json and CSRF-TOKEN header. We see that the CSRF token is getting added only when we login to CRX. If the CRX session is not created, the CSRF token is passed as undefined. Please let me know in case I am missing anything here.

Thanks,

Ayush

3 Replies

Avatar

Level 1

ayush81092​ Have you got any update or solution for the question.