X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fframework%2Fcore%2Fmodules%2Froutes%2Fconfiguration.js;h=61ebb650734e452afe597151ab14c99425234602;hb=119e39d96483d5cec756be95cc0cb735fb6f9a74;hp=b789ff0436df305a6311b7154e602a28d0fddf98;hpb=05b0bf7615e179d26d14d5d40f021fa3db9142a6;p=osm%2FUI.git diff --git a/skyquake/framework/core/modules/routes/configuration.js b/skyquake/framework/core/modules/routes/configuration.js index b789ff043..61ebb6507 100644 --- a/skyquake/framework/core/modules/routes/configuration.js +++ b/skyquake/framework/core/modules/routes/configuration.js @@ -71,10 +71,10 @@ Router.get('/check-auth', function(req, res) { function checkAuth(uri, req){ return new Promise(function(resolve, reject) { request({ - uri: uri, + uri: utils.projectContextUrl(uri), method: 'GET', headers: _.extend({}, { - 'Authorization': req.get('Authorization'), + 'Authorization': req.session && req.session.authorization, forever: CONSTANTS.FOREVER_ON, rejectUnauthorized: false, })