Unanswered question

CSRF value stored in a variable in JS and to be extracted

CSRF value is computed and stored in a variable in a
response of JS File. This value is available in a variable with in a function. I would need to copy this value in to a variable of my java script, which then could be used for other request.

Please let me know the way with which we could do it.

Varun P.
Varun P.

Varun P.

Level
0
3 / 100
points

Answers

Neil W.
Neil W.

Neil W.

Level
1
648 / 750
points
Team

In the java script you drag into a test, you will see an pre-filled examples of getting and setting Neoload variables to/from JavaScript variables