JiuZZZ commited on
Commit
98ae1c3
·
verified ·
1 Parent(s): 1dfe3c7

Update hf.js

Browse files
Files changed (1) hide show
  1. hf.js +1 -0
hf.js CHANGED
@@ -13,6 +13,7 @@ app.use('*', createProxyMiddleware({
13
  pathRewrite: {
14
  '^/hf/': '/',
15
  },
 
16
  }));
17
 
18
  const port = process.env.HF_PORT || 7860;
 
13
  pathRewrite: {
14
  '^/hf/': '/',
15
  },
16
+ changeOrigin: true
17
  }));
18
 
19
  const port = process.env.HF_PORT || 7860;