I have been porting an angular1 project to the angular2-webpack-starter project. The front-end portion is working well enough that I attempted to connect the frontend to the backend server by setting up the proxy in the webpack.dev.js file as:
...
devServer: {
proxy: {
'/auth/*': {
target: 'http://localhost:9000/auth/',
secure: false
}
},
port: METADATA.port,
host: METADATA.host,
historyApiFallback: true,
watchOptions: {
aggregateTimeout: 300,
poll: 1000
}
},
...
Something is clearly WRONG as: http://localhost:3000/auth/local
is NOT proxied to the backend. So your help would be greatly appreciated. Or is the proxy stuff for the webpack-dev-server not yet working???
Thanks!!