Skip to content

Commit

Permalink
Carry over auth header
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed May 9, 2024
1 parent 180352b commit 1194a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1194a67

Please sign in to comment.