I am working on a single page application and I am using Laravel 5 for the web service.
All forms are submitted asynchronously and I use a beforeSend on them to atta
We can set CSRF token in request header.
xhr = open("POST",logURL,true); //Set CSRF token in request header for prevent CSRF attack. xhr.setRequestHeader(CSRFHeaderName, CSRFToken);