d3 / d3-request

A convenient alternative to XMLHttpRequest.
BSD 3-Clause "New" or "Revised" License
110 stars 54 forks source link

Basic authentication? #2

Closed mbostock closed 8 years ago

mbostock commented 9 years ago

See mbostock/d3#2131. These need to be passed to XMLHttpRequest.open.

We also need to expose the withCredentials flag (for cookie-based authentication?)—although at least now you can use the "beforesend" event to set it, I think. This should be separate from specifying a username and password, though.

mbostock commented 8 years ago

Punting on this, as it can be done using beforesend.

mbostock commented 8 years ago

This can’t be done in beforesend because we need to pass the username and password to xhr.open.