Hello, I'm trying to get an image in a simple HTML document after having POST to _session. The POST is correct and I receive a set-cookie. But when <img src="server.com/mydb/mydoc/image.jpg" /> fetch image It result in a 401 error. Then in firefox it asks me login/password and in chrome it just silently ignore it.
The HTML file is served from my local apache server, but couchdb instance is running in a remote server. Thus, I though there was a problem due to CORS and I set CORS parameters from configuration files to enable it . CORS requests are working fine because when I make an Ajax request with basic authentication or when I enter my login/password after <img /> tried to fetch image it's working. Maybe it is not a couchDB issue, maybe in CORS cookie is just not sent in the GET request resulted from <img /> I'm using CouchDB 1.4. Thanks for any answers. Max
