Skip to content

Commit

Permalink
Try passing through headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andychase committed Oct 9, 2024
1 parent 44abca6 commit c6c912c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/api/health-check.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export default async function healthCheck(req: NextRequest) {
method: 'POST',
headers: {
'content-type': 'application/json',
'x-ms-client-principal-name': 'test-principal', // These can be mock values
'x-ms-token-aad-access-token': 'mock-token',
'x-ms-client-principal-name': req.headers?.get("x-ms-client-principal-name") || '',
'x-ms-token-aad-access-token': req.headers?.get("x-ms-token-aad-access-token") || '',
'x-ms-client-principal-id': req.headers?.get("x-ms-client-principal-id") || ''
},
body: JSON.stringify({
model: {
Expand Down

0 comments on commit c6c912c

Please sign in to comment.