Skip to content

Commit

Permalink
πŸ› feat: add proxy debugger (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll authored May 22, 2024
1 parent 6cf0eba commit af19839
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions registration/src/lib/utils/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ export const handleProxy = (async ({ event }) => {
requestHeaders.delete('connection');

try {
logger.debug('Proxying request: ', {
url: proxiedUrl.toString(),
method: request.method,
headers: Object.fromEntries(requestHeaders.entries()),
body: request.body
});

const response = await fetch(proxiedUrl.toString(), {
redirect: 'manual',
method: request.method,
Expand Down

0 comments on commit af19839

Please sign in to comment.