1
0
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:
Jared Tabor 2015-02-18 10:39:10 -05:00
parent 50e174ea43
commit 203de5221e

View File

@ -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