You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jyoti Venkatesh <Jy...@NIIT-Tech.com> on 2010/08/17 09:47:10 UTC

cross domain calls in couchdb list function

Hello,

I have a couchdb list function. I am calling this function from a javascript in another domain and i am facing cross domain call issue. How do i solve this in couchdb? What should i do in list function to solve the cross domain call issue or is there anything i need to do in couchdb admin?


Please let me know how i can solve this issue..


jo

________________________________
DISCLAIMER

The content of this email and any attachments ('email') is confidential, may be privileged, subject to copyright and may be read and used only by the intended recipient. If you are not the intended recipient please notify us by return email or telephone and erase all copies and do not disclose the email or any part of it to any person. Email transmission cannot be guaranteed to be secure, or error free as information could be intercepted, corrupted, lost or destroyed as a result of the transmission process. The sender, therefore, does not accept liability for any errors, omissions, viruses or delay in transmission as a result of this mail. We monitor email communications through our networks for regulatory compliance purposes and to protect our clients, employees and business. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT Technologies Ltd. or its affiliate(s) shall be understood to be neither given nor endorsed by NIIT Technologies Ltd. or its affiliate(s).

Re: cross domain calls in couchdb list function

Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 17 August 2010 19:47, Jyoti Venkatesh <Jy...@niit-tech.com> wrote:
> Hello,
>
> I have a couchdb list function. I am calling this function from a javascript in another domain and i am facing cross domain call issue. How do i solve this in couchdb? What should i do in list function to solve the cross domain call issue or is there anything i need to do in couchdb admin?

Hi Jo

I'm not an expert but the 2 usual ways of resolving this are - other
than getting your domains sorted -
- use a proxy / reverse proxy to rewrite URLs so that the browser does
not see the separated domains
- JSONP which I know very little about other than running into it on
the jquery website some time ago http://api.jquery.com/jQuery.getJSON/
I suspect this only works for GET not PUT/POST/whatever

cheers
Dave