How to use proxy in webpack and reactjs?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box; 1 I have added following code in "webpack.config.dev.js" devServer: proxy: target:"http://localhost:8081" I'm using following axios code, but it's not taking proxy as a url axios( method:"post", url:"/add_order_product", data:result ).then(response => alert(response.data); if(response.data === true) // console.log(response); alert("saving data"); ).catch(response => console.log(response); ); reactjs react-redux webpack-dev-server share | improve this question edited Nov 16 '18 at 17:23 executable 1,978 2 9 24 asked Nov 16 '18 at 12:42 SVD SVD 6 3 add a comment | 1 I have added following code in "webpack.config.dev.js" devServer: proxy: target:...