incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <si...@cloudant.com>
Subject Re: does jquery.couch actually work ?
Date Fri, 21 Sep 2012 12:00:14 GMT
Yup, you'll need to proxy CouchDB so that everything appears to come from the same server.
http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy might be a decent place to start.


On Thursday, 20 September 2012 at 22:04, john.tiger wrote:

> On 09/20/2012 01:26 PM, Simon Metson wrote:
> > Hey John,
> > http://bradley-holt.com/2011/07/couchdb-jquery-plugin-reference/ might be a useful
reference for you.
> > 
> > I've got a working example that I'll put online tomorrow. It uses backbone Events
to communicate when someone logs in/out, but if you don't need/want that removing it should
be easy enough.
> > Cheers
> > Simon
> > 
> 
> 
> hmm, I'm suspecting our stuff was "silently" failing - using straight 
> $.getjson call now shows:
> 
> Origin http://127.0.0.1 is not allowed by Access-Control-Allow-Origin.
> 
> the nginx conf is set up to render html pages at http://127.0.0.1
> 
> wondering if the nginx conf needs a line:
> location /<dbname>/ {proxy_pass http://127.0.0.1:5984;}
> 
> 
> 
> 
> 
> > 
> > 
> > On Wednesday, 19 September 2012 at 02:12, john.tiger wrote:
> > 
> > > On 09/18/2012 04:32 PM, Simon Metson wrote:
> > > > You're trying to do login/session/logout in Backbone? Give me a few days
> > > > and I can write up an example app.
> > > > 
> > > 
> > > no not in Backbone, just in our own html5 and jquery code. Going thru
> > > the jquery.couch lib and futon lib, I started to document the needed
> > > calls - still not quite there - for example, to create a user (reader
> > > type) do you still have to create the password hash first or does couch
> > > now do that ....
> > > 
> > 
> > 
> 
> 
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message