Skip to content

Commit

Permalink
Fix bug in header manipulation example (#967)
Browse files Browse the repository at this point in the history
Thanks!
  • Loading branch information
mcgwiz authored Apr 5, 2024
1 parent 84bfa46 commit f01dea1
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 f01dea1

Please sign in to comment.