Skip to content

Commit

Permalink
fix: Do not forward cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed Jan 6, 2024
1 parent 3f52d62 commit 91bcd77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const createProxyRoute = async (
proxyReqOptDecorator: function (proxyReqOpts, srcReq) {
if (proxyReqOpts.headers) {
delete proxyReqOpts.headers['connection'];
delete proxyReqOpts.headers['cookie'];
}

if (opts?.requestDecorators) {
Expand Down

0 comments on commit 91bcd77

Please sign in to comment.