Skip to content

Commit

Permalink
Fix bug in header manipulation example
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgwiz committed Feb 8, 2024
1 parent e4932b3 commit 7e5b2fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recipes/response-interceptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const proxy = createProxyMiddleware({
proxyRes: responseInterceptor(async (responseBuffer, proxyRes, req, res) => {
res.removeHeader('content-security-policy'); // Remove the Content Security Policy header
res.setHeader('HPM-Header', 'Intercepted by HPM'); // Set a new header and value
return responseBuffer;
}),
},
});
Expand Down

0 comments on commit 7e5b2fc

Please sign in to comment.