Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF936DE9D for ; Fri, 21 Sep 2012 12:00:55 +0000 (UTC) Received: (qmail 72354 invoked by uid 500); 21 Sep 2012 12:00:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71381 invoked by uid 500); 21 Sep 2012 12:00:46 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 71324 invoked by uid 99); 21 Sep 2012 12:00:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 12:00:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simon@cloudant.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 12:00:37 +0000 Received: by wibhn17 with SMTP id hn17so1476455wib.5 for ; Fri, 21 Sep 2012 05:00:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=KFdTkEkDxNKsFsowzcqwlgmbTxedMHWbgYNOCfgkaIM=; b=kwIrIzwbHQBLixYa8RZSJLGkhz8FP+iqSXebWVFaPor4DjBhqfI+fU1qFq8rAm8U4E NzJPLZ0T1c0SoiujZ4ZMSf/EBDw+7GazkSvTU2xNnyQimECTNS33oU7gn3Ifwv8HElQJ Zt5s0n0jZUoIIscuyIrts5SiOh/+GQee2hA/tTrDsCgK3hs+DlcQxKgL0Wt3u69LROkE +4WGKm6GkYbK0DJ8LEIGOM2TLrdzgswWQF3FRpLNLW1YdO+x3HePUsfHkB45y2wqHMjl PLvAc3MgYtwTEq5FgqSJekBKcOJWdH3JurQ/WNSK0rsU3PF7lOzv1quc2I4RII1A0W2B /lOA== Received: by 10.180.107.163 with SMTP id hd3mr4090570wib.19.1348228816503; Fri, 21 Sep 2012 05:00:16 -0700 (PDT) Received: from [192.168.1.73] (host86-146-2-132.range86-146.btcentralplus.com. [86.146.2.132]) by mx.google.com with ESMTPS id fr4sm16282066wib.8.2012.09.21.05.00.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Sep 2012 05:00:15 -0700 (PDT) Date: Fri, 21 Sep 2012 13:00:14 +0100 From: Simon Metson To: user@couchdb.apache.org Message-ID: <3F073B39189E45E9BEAF7CDD8BD0F0E1@cloudant.com> In-Reply-To: <505B84D7.2070703@gmail.com> References: <50588AA2.5020602@gmail.com> <505897E9.3070007@gmail.com> <5058C9FB.1040003@gmail.com> <50591BF8.60505@gmail.com> <4CB5DEE630B54952AD6CFB8402C61969@cloudant.com> <505B84D7.2070703@gmail.com> Subject: Re: does jquery.couch actually work ? X-Mailer: sparrow 1.6.3 (build 1172) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="505c56ce_4b588f54_181cc" X-Gm-Message-State: ALoCoQlAoLWzZ0PU0GIMD9sveIMnzhp75zd3mw6uxpnS6fsEOD9Uv4S/mEEec0AVDpQfnlAw8cPY X-Virus-Checked: Checked by ClamAV on apache.org --505c56ce_4b588f54_181cc Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 // {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 .... > > > > > > > > > > --505c56ce_4b588f54_181cc--