Fetch monkeypatching to support the 'fetch()' API alongside XHR.