You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by "john.tiger" <jo...@gmail.com> on 2012/09/19 17:54:50 UTC
couchdb same domain policy on local dev machine with multiple sites
on our local development machines, we want to be able to develop and
test on multiple web sites - we have done this with nginx using fake
domain names - this seems to cause a problem with couchdb with the local
domain policy.
has anyone done this ? what did your nginx setup look like ?
Re: couchdb same domain policy on local dev machine with multiple sites
Posted by Noah Slater <ns...@tumbolia.org>.
The blog post you list seems to present some suggestions. Pick which ever
fits your setup. ;)
On Wed, Sep 19, 2012 at 10:45 PM, john.tiger <jo...@gmail.com>wrote:
> okay, I see a pretty good cloudant article on this:
> http://support.cloudant.com/**customer/portal/articles/**
> 359321-how-do-i-read-and-**write-to-my-cloudant-database-**
> from-the-browser-<http://support.cloudant.com/customer/portal/articles/359321-how-do-i-read-and-write-to-my-cloudant-database-from-the-browser->
>
> ugh, so many options - any suggestions? we have nginx and also familiar
> with node (were running node-http-proxy) - just want to get this working
>
>
>
>
> On 09/19/2012 10:14 AM, Benoit Chesneau wrote:
>
>> On Wed, Sep 19, 2012 at 5:54 PM, john.tiger<jo...@gmail.com>>
>> wrote:
>>
>>> on our local development machines, we want to be able to develop and
>>> test
>>> on multiple web sites - we have done this with nginx using fake domain
>>> names
>>> - this seems to cause a problem with couchdb with the local domain
>>> policy.
>>>
>>> has anyone done this ? what did your nginx setup look like ?
>>>
>> Waiting CORS support (really tomorrow) I would use an apache proxy or
>> any cors proxy on top. Not sure if there are modules for nginx as
>> well.
>>
>> - benoīt
>>
>>
>
--
NS
Re: couchdb same domain policy on local dev machine with multiple
sites
Posted by "john.tiger" <jo...@gmail.com>.
okay, I see a pretty good cloudant article on this:
http://support.cloudant.com/customer/portal/articles/359321-how-do-i-read-and-write-to-my-cloudant-database-from-the-browser-
ugh, so many options - any suggestions? we have nginx and also familiar
with node (were running node-http-proxy) - just want to get this working
On 09/19/2012 10:14 AM, Benoit Chesneau wrote:
> On Wed, Sep 19, 2012 at 5:54 PM, john.tiger<jo...@gmail.com> wrote:
>> on our local development machines, we want to be able to develop and test
>> on multiple web sites - we have done this with nginx using fake domain names
>> - this seems to cause a problem with couchdb with the local domain policy.
>>
>> has anyone done this ? what did your nginx setup look like ?
> Waiting CORS support (really tomorrow) I would use an apache proxy or
> any cors proxy on top. Not sure if there are modules for nginx as
> well.
>
> - benoît
>
Re: couchdb same domain policy on local dev machine with multiple
sites
Posted by "john.tiger" <jo...@gmail.com>.
On 09/19/2012 10:14 AM, Benoit Chesneau wrote:
> On Wed, Sep 19, 2012 at 5:54 PM, john.tiger<jo...@gmail.com> wrote:
>> on our local development machines, we want to be able to develop and test
>> on multiple web sites - we have done this with nginx using fake domain names
>> - this seems to cause a problem with couchdb with the local domain policy.
>>
>> has anyone done this ? what did your nginx setup look like ?
> Waiting CORS support (really tomorrow)
do you mean in Couch or Apache ? apparently nginx does support CORS but
have no idea how that would work with couch
Re: couchdb same domain policy on local dev machine with multiple sites
Posted by Benoit Chesneau <bc...@gmail.com>.
On Wed, Sep 19, 2012 at 5:54 PM, john.tiger <jo...@gmail.com> wrote:
> on our local development machines, we want to be able to develop and test
> on multiple web sites - we have done this with nginx using fake domain names
> - this seems to cause a problem with couchdb with the local domain policy.
>
> has anyone done this ? what did your nginx setup look like ?
Waiting CORS support (really tomorrow) I would use an apache proxy or
any cors proxy on top. Not sure if there are modules for nginx as
well.
- benoît