I have a project with laravel 5.2. There is another system in .net. What I want is to get login into laravel 5.2 from .net system. For that, I'm making ajax call from .net app to laravel app. But laravel app is throwing TokenMismatchException. I know I have to send csrf token in request. But how to send csrf token from .net app. If anyone knows the answer, it will be appreciated.
Here is my code.
.net app
$.ajax({
type: 'POST',
url: 'http://192.168.1.78/laravel-project/login',
data: {
email: 'xyz@xyz.com',
password: 'pass'
}
}).success(function (response) {
response = $.parseJSON(response);
}).error(function () {
alert('error');
});