+72
−5
Loading
The fetch API itself doesn't let you change certain headers, notably including Host which we need for domain fronting. So instead, we set an onBeforeSendHeaders listener, with a lock to cause this shared global setting to be used by only one request at a time.