Skip to content

Commit

Permalink
frackend: cleanup headers before forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-a-e committed Apr 18, 2024
1 parent 3014998 commit b38a53c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/frackend/src/apiProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export function addProxyHandler(
proxyReq: (proxyRequest, request) => {
const obo = request.headers["obo-token"];
if (obo) {
proxyRequest.removeHeader("obo-token");
proxyRequest.removeHeader("cookie");
proxyRequest.setHeader("Authorization", `Bearer ${obo}`);
} else {
console.log(
Expand Down

0 comments on commit b38a53c

Please sign in to comment.