couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CGS <>
Subject Re: CouchDB cookie from outside CouchDB
Date Thu, 29 Sep 2011 20:10:26 GMT
Thanks, Benoit. It might work this option, only that YAWS v.1.88 
(default for Ubuntu) is not able to handle revproxy (I get a nice 404). 
I think I need to install YAWS from github.


On 09/29/2011 06:45 PM, Benoit Chesneau wrote:
> On Thu, Sep 29, 2011 at 6:42 PM, CGS<>  wrote:
>> First of all, thank you Dale for your answer. Still, the problem is more
>> complex than I anticipated.
>> I am using YAWS as web server and it doesn't support proxy, so, I have to
>> use two different ports for the two (CouchDB and YAWS). Methods I have
>> tried:
>> 1. $.ajax() - error: not allowed cross-domain data transfer via JavaScript
>> (both IP and port should match exactly for both origin and target), so, even
>> if correct authentication, no cookie.
>> 2. form action pointing to
>> server_name:5984/_session?next=/path_to_attachment/back.html - error: if the
>> authentication fails (incorrect username/password), the "next" is no longer
>> taken (back.html contains only window.location which redirects back to
>> YAWS), but it goes back if the authentication doesn't fail.
>> I would appreciate any idea related to how to solve any of these errors.
>> Thank you.
>> Cheers,
>> CGS
> can't you use the reverse proxy module of yaws ? Othere way would be
> having an iframe. Waiting CORS (patch should be available on friday,
> was busy).
> - benoit

View raw message