Reputation: 1
I just started using Jmeter at my job and when recorded the script and try to play back i am getting this message for login
Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN
I am also getting response code 403.
Can somebody please help me?
Upvotes: 0
Views: 1941
Reputation: 168147
It means that you need to correlate a dynamic value:
_csrf
or as X-CSRF-TOKEN
request header using HTTP Header Manager See How to Load Test CSRF-Protected Web Sites for more detailed explanation and example of CSRF protection bypassing in JMeter test script
Upvotes: 1
Reputation: 91
You can try adding a HTTP Cookie Manager, as csfr tokens are sometimes sent in the cookies. Regards
Upvotes: 0