I've read the documentation for the webpack-dev-server and how to setup a proxy, but it's not working for me. What I want to do is have an API_ROOT
to http://my_external_server.com/api
and then use that in ajax requests. In my config I have:
proxy: {
'http://my_external_server.com/api/*' : {
target: 'http://127.0.0.1:8000/api/',
secure: false
}
}
Here is my full config.