mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Add CSRF token to auth request
This commit is contained in:
parent
5e873562f9
commit
0aef9df793
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user