From 1194a67018e275b1831f34d1561411934b009a0b Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Thu, 9 May 2024 14:44:39 +0100 Subject: [PATCH] Carry over auth header --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3d96ae0..58b8477 100644 --- a/src/index.ts +++ b/src/index.ts @@ -289,7 +289,7 @@ app.post("/submit", auth0Middleware, async (c) => { if (auth0Payload?.permissions && auth0Payload.permissions.includes('submit')) { const resp = await fetch(c.env.secureSubmitEndpoint, { headers: { - "api-key": c.env.apikey, + 'Authorization': c.req.header("Authorization")!, "content-type": "application/json;charset=UTF-8", }, body: data,