From cb9017dddc15ed0051b8afcd0be2d2b6c967a3c2 Mon Sep 17 00:00:00 2001 From: ElementRobot Date: Mon, 24 Oct 2022 16:11:37 +0100 Subject: [PATCH] [Backport staging] Send Content-Type: application/json header for integration manager /register API (#9491) Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- src/ScalarAuthClient.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ScalarAuthClient.ts b/src/ScalarAuthClient.ts index 5dacd07973..3ee1e7c15d 100644 --- a/src/ScalarAuthClient.ts +++ b/src/ScalarAuthClient.ts @@ -190,6 +190,9 @@ export default class ScalarAuthClient { const res = await fetch(scalarRestUrl, { method: "POST", body: JSON.stringify(openidTokenObject), + headers: { + "Content-Type": "application/json", + }, }); if (!res.ok) {