Skip to content

Commit

Permalink
Closes-Bug: #1550290
Browse files Browse the repository at this point in the history
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I428114d8e83acfa6952ef901751fe2c0c9c9b0d0
(cherry picked from commit 4094810)
  • Loading branch information
knagakiran committed Mar 11, 2016
1 parent 9ac6b4e commit 4f660be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/serverroot/web/api/configServer.main.api.js
Expand Up @@ -107,8 +107,10 @@ function configAppHeaders (headers, appData, callback)
var xAuthTokenObj = null;
if ((null == appData) || (null == appData['authObj'].req) ||
(null == appData['authObj']['defTokenObj'])) {
headers['X-Auth-Token'] = null;
headers['X_API_ROLE'] = null;
if (true == multiTenancyEnabled) {
headers['X-Auth-Token'] = null;
headers['X_API_ROLE'] = null;
}
callback(headers);
return;
}
Expand Down

0 comments on commit 4f660be

Please sign in to comment.