incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@jsonified.com>
Subject Re: CORS- error 405
Date Wed, 19 Jun 2013 16:46:31 GMT
On 19 June 2013 15:42, Romi Awasthy <romiawasthy@gmail.com> wrote:
> Hi,
>
>     I am getting error: 405 Method Not Allowed error (Origin
> http://localhost is not allowed by Access-Control-Allow-Origin)
>
>
>
>  I understand I need to add enable cors to resolve this issue. I have added
> these two settings in my local.ini file.
>
>
>
> *[httpd]*
>
> enable_cors = true
>
>
>
> *[cors]*
>
> origins = *
>
>
>
> But, that is not resolving the issue. Is there something else that is
> needed?

Hi Romy,

This is best sent to user@ mailing list in future.

You need to whitelist the methods you intend to support:

https://couchdb.readthedocs.org/en/latest/configuring.html#tightening-access

I suspect we can make this more clear in the documentation.

A+
Dave

Mime
View raw message