From 203de5221ea734f0b9ac865a17723083b5c4ccf2 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 18 Feb 2015 10:39:10 -0500 Subject: [PATCH] Adding query string for websockets to pass the auth token instead of in the cookie --- awx/ui/static/lib/ansible/Socket.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/static/lib/ansible/Socket.js b/awx/ui/static/lib/ansible/Socket.js index d51438cc8b..caf865d2ad 100644 --- a/awx/ui/static/lib/ansible/Socket.js +++ b/awx/ui/static/lib/ansible/Socket.js @@ -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