You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Dave Cottlehuber <dc...@jsonified.com> on 2013/06/19 18:46:31 UTC
Re: CORS- error 405
On 19 June 2013 15:42, Romi Awasthy <ro...@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