- From: hmottestad <notifications@github.com>
- Date: Wed, 23 Mar 2016 05:24:07 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Wednesday, 23 March 2016 12:24:34 UTC
@annevk
With the following example:
- https://test:test@www.google.no
- window.fetch("hello")
Older version of chrome (v48): **Request URL:** https://test:test@www.google.no/hello
Firefox: TypeError: hello is an url with embedded credentials.
New version of Chrome fails like Firefox.
However, XMLHttpRequest works fine in Firefox:
```
xhttp = new XMLHttpRequest();
xhttp.open("GET", "hello", true);
xhttp.send();
```
**Request url:** https://test:test@www.google.no/hello
I would propose that the credentials checking happens before expanding relative urls.
---
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/26#issuecomment-200326966
Received on Wednesday, 23 March 2016 12:24:34 UTC