Add CSRF token to auth request

This commit is contained in:
Toby Zerner 2015-12-03 21:00:32 +10:30
parent 5e873562f9
commit 0aef9df793

View File

@ -15,7 +15,7 @@ app.initializers.add('flarum-pusher', () => {
authEndpoint: app.forum.attribute('apiUrl') + '/pusher/auth',
auth: {
headers: {
'Authorization': 'Token ' + app.session.token
'X-CSRF-Token': app.session.csrfToken
}
}
});