mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +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',
|
||||
auth: {
|
||||
headers: {
|
||||
'Authorization': 'Token ' + app.session.token
|
||||
'X-CSRF-Token': app.session.csrfToken
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user