You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Romi Awasthy <ro...@gmail.com> on 2013/06/19 15:42:59 UTC

Fwd: CORS- error 405

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?



Thanks

Romi

Re: CORS- error 405

Posted by Dave Cottlehuber <dc...@jsonified.com>.
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

Re: CORS- error 405

Posted by Dave Cottlehuber <dc...@jsonified.com>.
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

Re: CORS- error 405

Posted by Dominic Barnes <do...@dbarnes.info>.
What version of CouchDB are you using? (CORS support is only available for
1.3+)

- Dominic Barnes


On Wed, Jun 19, 2013 at 8:42 AM, 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?
>
>
>
> Thanks
>
> Romi
>