We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0e4e1 commit 182109cCopy full SHA for 182109c
src/client/src/setupProxy.js
@@ -1,9 +1,9 @@
1
const proxy = require('http-proxy-middleware');
2
3
-
4
module.exports = function(app) {
5
app.use(proxy('/api/**', {
6
- target: process.env.IS_LOCAL === 'true' ? 'http://localhost:3333' : 'http://server:5000'
+ target: process.env.IS_LOCAL === 'true' ? 'http://localhost:3333' : 'http://server:5000',
+ changeOrigin: true,
7
}
8
));
9
0 commit comments