CSRF Token not available without successful CRX login

Avatar

Avatar

ayush81092

Avatar

ayush81092

ayush81092

22-10-2018

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

Replies

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

16-11-2018

PuzanovsP​ Any help?

Avatar

Avatar

premchandp63244

Avatar

premchandp63244

premchandp63244

15-05-2019

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