From 18b03fcd162f54cb1010d14f3db344e3bb506675 Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Thu, 9 May 2024 21:17:29 +0100 Subject: [PATCH] Added Host header --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 08e8d62..73c79e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -295,7 +295,8 @@ app.post("/submit", auth0Middleware, async (c) => { 'Authorisation': authorisation, "Content-type": "application/json", "Cache-Control": "no-cache", - "User-Agent": "PostmanRuntime/7.37.3" + "User-Agent": "cultvault-podcasts-api", + "Host": new URL(c.env.secureSubmitEndpoint).host }, body: JSON.stringify(data), method: "POST"