Skip to content

Commit

Permalink
feat: add repsonse X-Real-Origin debug header
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Nov 16, 2023
1 parent 289e9ed commit 3db9860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/esm-proxy-request-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function esmProxyRequestHandler(
`public, max-age=${REDIRECT_FAILURE_CACHE}`,
);
}
headers.set('X-Real-Origin', realUrl.origin);
return new Response(
replaceOrigin(systemjsCode),
{ headers },
Expand Down

0 comments on commit 3db9860

Please sign in to comment.