Skip to content

Commit

Permalink
proxy response: strip access-control-allow-origin header
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Aug 22, 2024
1 parent 5b4700f commit 20158b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/run-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ app.use(
createProxyMiddleware({
target: OKAPI,
changeOrigin: true,
on: {
proxyRes: (proxyRes) => {
delete proxyRes.headers['Access-Control-Allow-Origin'];
},
},
}),
);

Expand Down

0 comments on commit 20158b7

Please sign in to comment.