Webpack react proxy ne fonctionne pas

//add this config in WebpackDevServer

proxy: {
  '/api': {
    target: 'http://localhost:4000',
      changeOrigin: true,
  },
},
Restu Wahyu Saputra