Merge pull request #1875 from Amatsagu/patch-3

Update headers for REST Controller
This commit is contained in:
ITOH
2022-01-01 18:45:20 +01:00
committed by GitHub

View File

@@ -25,7 +25,8 @@ export async function runMethod<T = any>(
const result = await fetch(url, {
body: JSON.stringify(body || {}),
headers: {
authorization: rest.secretKey,
"Authorization": rest.secretKey,
"Content-Type": "application/json"
},
method: method.toUpperCase(),
}).catch((error) => {