From 7e8153a9d8370d66bc09775915ac88467ce0f145 Mon Sep 17 00:00:00 2001 From: Julian Purse Date: Sat, 17 Aug 2024 13:42:23 +0200 Subject: [PATCH] add content type header when not MSAL --- nflow-explorer/src/service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nflow-explorer/src/service.ts b/nflow-explorer/src/service.ts index 1e57043e1..f40486d84 100644 --- a/nflow-explorer/src/service.ts +++ b/nflow-explorer/src/service.ts @@ -45,6 +45,9 @@ const authenticatedApiCall = (url: string, config: Config, body?: any): Promise< body: body }; if (!config.msalClient) { + options.headers = new Headers({ + "content-type": "application/json" + }); return fetch(url, options); } const request = {