proxy in package.json working and not working 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,
},
},