- From: Andres Rios <notifications@github.com>
- Date: Tue, 14 Mar 2017 05:02:30 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 14 March 2017 12:03:02 UTC
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