Skip to content

Commit

Permalink
Add change origin to remove host header
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuckson committed May 24, 2023
1 parent e4b08c5 commit 2f56af6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/api/compliance/[...all].js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const config = {
const proxy = createProxyMiddleware({
target: process.env.AIRVIEW_API_URL,
secure: false,
changeOrigin: true,
pathRewrite: { "^/api/compliance/": "" }, // remove `/api/proxy` prefix
});

Expand Down

0 comments on commit 2f56af6

Please sign in to comment.