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: I9bae4cd1e2abee23f994bb3480a4fc82f13b5afa
  • Loading branch information
knagakiran committed Feb 27, 2016
1 parent 4a43b54 commit 70ecb10
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 @@ -77,8 +77,10 @@ function configAppHeaders (headers, appData)
}
}
} catch(e) {
headers['X-Auth-Token'] = null;
headers['X_API_ROLE'] = null;
if (true == multiTenancyEnabled) {
headers['X-Auth-Token'] = null;
headers['X_API_ROLE'] = null;
}
}
return headers;
}
Expand Down

0 comments on commit 70ecb10

Please sign in to comment.