Replaying test recorded with Jmeter fails due to XAS in the script

Hi, I am trying to use JMeter for load testing mendix applications and i have initially recorded a test but when i run the test its fail and the error in the response body tab shows {"result":"Invalid session, please login"} Please help    
1 answers

Guess you have to set the x-csrf-token header together with the cookie. See the chrome dev tool (f12) > network tab to see which info is passed in you calls. 

See the last Mendix webinar about load testing for an example: