Skip to content

Commit

Permalink
feat: stop sending Cookies header
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kabo committed Feb 15, 2024
1 parent 1f46402 commit 8f2d2be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/apiProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,7 @@ export const proxyApiHandler =
Authorization: `Bearer ${req.signedCookies[OAuthAccessTokenCookieName]}`,
};
default:
// TODO: This is legacy code!
// We don't want to send literally all cookies to APIs so when
// we migrate to Okta tokens entirely we should remove this
return {
Cookie: getCookiesOrEmptyString(req),
};
return {};
}
};

Expand Down

0 comments on commit 8f2d2be

Please sign in to comment.