Daily Archives: 2020/02/29

Using Webpack’s Development Server to Proxy API Requests to Servers running Mulitple Websites

Webpack-dev-server enables you to serve web applications during development. To work around the restrictions imposed by CORS, webpack-dev-server ships with a proxy feature that enables the transparent forwarding of requests made to the webpack-dev-server to remote servers. For example, in order to forward everything under /api to http://myserver.com/api, you can […]