Skip to content

Commit

Permalink
Fix: Add required header for tip annotations display (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW authored Aug 8, 2023
1 parent a29a349 commit 9c6b6f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/services/actions/query-action-creator-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function createAnonymousRequest(query: IQuery, proxyUrl: string, queryRun
Authorization: `Bearer ${authToken}`,
'Content-Type': 'application/json',
SdkVersion: 'GraphExplorer/4.0',
prefer: 'ms-graph-dev-mode',
...sampleHeaders
};

Expand Down Expand Up @@ -91,6 +92,7 @@ function createAuthenticatedRequest(
): GraphRequest {
const sampleHeaders: any = {};
sampleHeaders.SdkVersion = 'GraphExplorer/4.0';
sampleHeaders.prefer = 'ms-graph-dev-mode';

if (query.sampleHeaders && query.sampleHeaders.length > 0) {
query.sampleHeaders.forEach((header) => {
Expand Down

0 comments on commit 9c6b6f8

Please sign in to comment.