- Browser
- Server (proxy)
- Agent
- Destination site.
Flow details:
- Request from browser (Client) goes to Proxy Server.
- Server store the request in the memory.
- Agent polling proxy server for new requests.
- Agent send the request to the destination address.
- Agent send the response back to Proxy Server
- Proxy server return the response back to the browser.
- run
npm i
on both folders. - use
npm run watch
. - set proxy to
localhost:8000
- request a site in the browser.