mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Add CSRF token to auth request
This commit is contained in:
@@ -15,7 +15,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||||||
authEndpoint: app.forum.attribute('apiUrl') + '/pusher/auth',
|
authEndpoint: app.forum.attribute('apiUrl') + '/pusher/auth',
|
||||||
auth: {
|
auth: {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Token ' + app.session.token
|
'X-CSRF-Token': app.session.csrfToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user