From d1d938bacb8511260934ed46250ca667c73b82eb Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Thu, 9 May 2024 20:49:57 +0100 Subject: [PATCH] Add accept header --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f54afcd..6a57757 100644 --- a/src/index.ts +++ b/src/index.ts @@ -291,8 +291,10 @@ app.post("/submit", auth0Middleware, async (c) => { console.log(`Using auth header '${authorisation.slice(0, 20)}..'`); const resp = await fetch(c.env.secureSubmitEndpoint, { headers: { + 'Accept': "*/*", 'Authorisation': authorisation, - "Content-type": "application/json;charset=UTF-8", + "Content-type": "application/json", + "Cache-Control":"no-cache", }, body: JSON.stringify(data), method: "POST"