I'm calling Store while loading the extjs application. Now, I need to add CSRF security token in the store and this store should call while loading the application itself. I have added the token like below but request failed and given 500 error.
headers: {
'X-CSRF-TOKEN': 'token name'
}
Anything wrong in the above code?