1
Fork 0

Added CSRF token

This commit is contained in:
Jake Howard 2015-12-17 18:38:16 +00:00
parent 75891079b5
commit 6feb3fbde8

View file

@ -5,6 +5,7 @@ export default {
return request return request
.post(url) .post(url)
.send(params) .send(params)
.set('X-CSRF-TOKEN', window.CSRF_TOKEN)
.set('Accept', 'application/json'); .set('Accept', 'application/json');
}, },
}; };