setup proxy in webpack react code example
Example: webpack react proxy not working
//add this config in WebpackDevServer
proxy: {
'/api': {
target: 'http://localhost:4000',
changeOrigin: true,
},
},
//add this config in WebpackDevServer
proxy: {
'/api': {
target: 'http://localhost:4000',
changeOrigin: true,
},
},