[Backport staging] Send Content-Type: application/json header for integration manager /register API (#9491)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28217/head
ElementRobot 2022-10-24 16:11:37 +01:00 committed by GitHub
parent 9ffba57f93
commit cb9017dddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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) {