Skip to content

Commit

Permalink
added tenant id header fix (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
GurinderRawala authored Oct 17, 2024
1 parent 71c9177 commit de00151
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/app/core/services/backend_srv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ export class BackendSrv implements BackendService {
if (codeRabbitOrg) {
options.headers = options.headers ?? {};
options.headers['x-coderabbit-organization'] = codeRabbitOrg.id;
options.headers['x-tenant-id'] = sessionStorage.getItem('firebaseTenantId');
const firebaseTenantId = sessionStorage.getItem('firebaseTenantId');
if(firebaseTenantId){
options.headers['x-tenant-id'] = firebaseTenantId;
}
}

if (options.url.startsWith('/')) {
Expand Down

0 comments on commit de00151

Please sign in to comment.