Re: [fetch] URLs with username/password (#26)

@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