From d5cd8a0af2f037bbfd11948d4b9039815357280d Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Thu, 9 May 2024 18:00:40 +0100 Subject: [PATCH] Fix body on secure submit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b6819be..f54afcd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -294,7 +294,7 @@ app.post("/submit", auth0Middleware, async (c) => { 'Authorisation': authorisation, "Content-type": "application/json;charset=UTF-8", }, - body: data, + body: JSON.stringify(data), method: "POST" }); if (resp.status == 200) {