Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

webpack react proxy not working

//add this config in WebpackDevServer

proxy: {
  '/api': {
    target: 'http://localhost:4000',
      changeOrigin: true,
  },
},
 
PREVIOUS NEXT
Tagged: #webpack #react #proxy #working
ADD COMMENT
Topic
Name
5+3 =