benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.69k stars 2.72k forks source link

CouchDB connection not using user credentials from URL #846

Open MidnightLightning opened 9 years ago

MidnightLightning commented 9 years ago

When specifying a CouchDB URL like https://username:password@example.cloudant.com/stackedit as the documentation suggests, I can see XHR requests get sent to https://example.cloudant.com/stackedit, which is correct, but the username and password aren't used, and so the POST request is returning a 401 error.

mcescalante commented 9 years ago

Yeah, I'm noticing that when I use curl to make a request using http://username:password@instance.smileupps.com/documents that my requests work fine, however when I put it into the URL in stackedit, I get a 403 back saying that only administrators can edit design documents or a 401 indicating I haven't put credentials. The Chrome Console shows the regular request without username or password for me as well.