Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

CSRF Token not available without successful CRX login

Avatar

Avatar
Validate 1
Level 1
ayush81092
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ayush81092
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ayush81092
Level 1

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
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,129 likes

Total Posts

6,140 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,129 likes

Total Posts

6,140 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

16-11-2018

PuzanovsP​ Any help?

Avatar

Avatar
Give Back 3
Level 1
premchandp63244
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile

Avatar
Give Back 3
Level 1
premchandp63244
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile
premchandp63244
Level 1

15-05-2019

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