[whatwg/fetch] baseURI for all fetchs (#507)

Hello! I will be glad if you could give me a hint about baseURL for ```fetch```.
Please, [check this comment](https://github.com/m3co/pseudoimport-html/issues/64#issuecomment-286077396)

The rough idea around this question is:
May I have a way to setup a baseURL for all fetchs?
Consider the case when an script contains a lot of ```fetch``` calls with relative paths. And I'd like to reuse this script without changing the existing code by adding ```new URL('relative_path', document.baseURI).toString()``` to each ```fetch``` call.

What about if try something like ```fetch.baseURI = "//base-url";```?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/507

Received on Tuesday, 14 March 2017 12:03:02 UTC