NOTICKET: Refactor with sessions. Now holds auth on server
[osm/UI.git] / skyquake / framework / core / modules / routes / configuration.js
index b789ff0..37d87fe 100644 (file)
@@ -74,7 +74,7 @@ function checkAuth(uri, req){
             uri: uri,
             method: 'GET',
             headers: _.extend({}, {
-                'Authorization': req.get('Authorization'),
+                'Authorization': req.session && req.session.authorization,
                 forever: CONSTANTS.FOREVER_ON,
                 rejectUnauthorized: false,
             })