mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Adding query string for websockets
to pass the auth token instead of in the cookie
This commit is contained in:
parent
50e174ea43
commit
203de5221e
@ -71,6 +71,7 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
||||
$log.debug('Socket connecting to: ' + url);
|
||||
self.scope.socket_url = url;
|
||||
self.socket = io.connect(url, {
|
||||
query: "Token="+token,
|
||||
headers:
|
||||
{
|
||||
'Authorization': 'Token ' + token, // i don't think these are actually inserted into the header--jt
|
||||
|
Loading…
Reference in New Issue
Block a user