proxy: {
"*": "http://[::1]:8081"
// "safe": false,
// "changeOrigin": true
}
},
In accordance with customers, it’s essential that you just add [::1] in an effort to repair this downside, so make sure to strive that.
4. Modify the hosts file
- Open the hosts file. Needless to say this file is protected, so make sure to examine our information on correctly edit hosts file on Home windows 10.
- Now add the next line to the hosts file:
127.0.0.1 localhost - Save adjustments and examine if the issue is resolved.
5. Take away body-parser


Many customers reported that they fastened this concern just by eradicating specific body-parser middleware earlier than HPM.
After doing that, the problem was fully resolved, so make sure to strive that.
6. Add a header within the shopper proxy


- Open your code.
- Modify it like this:
module.exports = perform(app) {
app.use(proxy('/api', {
goal: 'http://127.0.0.1:8080/',
headers: {
"Connection": "keep-alive"
},
}));
};
Error occurred whereas making an attempt to proxy request message could cause a whole lot of hassle, however hopefully, you need to be capable to repair it utilizing one among our options.