How to proxy http requests with plain javascript? : <p>I'm writing a bot with plain javascript that sends requests to a certain website without node.js or dependencies like jquery. I want to send every requests through a proxy, but I can't figure out how to do that with vanilla js.</p>

<p>I don't know where to even start. I've read the xhr documentation and found nothing about proxies. Google yielded nothing too.</p>

<p>Thanks!</p>
