webpack: devserver proxy configuration
Published at March 9, 2019 · 1 min read
Webpack’s devserver is a very helpful tool. It helps a lot by setting web server for application during development. Usually, you need to communicate with your API (backend) from the client-side via some URL. To avoid cross-site scripting and CORS configuration on your backend or web server(I hope, it’s Nginx:)), you can use a built-in proxy server in the webpack devserver. You use it you need just to update webpack config or vue....