[ 
https://issues.apache.org/jira/browse/COUCHDB-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16169294#comment-16169294
 ] 

Julian commented on COUCHDB-3319:
---------------------------------

Apologies, my mistake. I'm running couchdb behind nginx anyway for load 
balancing and handling allowed domains but hadn't set couchdb's allowed origins 
to * causing a 405 which was throwing me off.

Thanks!

> Unable to modify cors/methods to enable HTTP OPTIONS requests
> -------------------------------------------------------------
>
>                 Key: COUCHDB-3319
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3319
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Peter Wilmott
>
> I'm running CouchDB 2.0.0 and in '/opt/couchdb/etc/local.d/local.ini' I have 
> the following:
> {quote}
> ; CouchDB Configuration Settings
> ; Custom settings should be made in this file. They will override settings
> ; in default.ini, but unlike changes made to default.ini, this file won't be
> ; overwritten on server upgrade.
> [chttpd]
> bind_address = any
> [couchdb]
> uuid = e5675a08388ac8563d4b8e8d46e96d42
> [httpd]
> enable_cors = true
> [cors]
> origins = *
> methods = GET, POST, PUT, DELETE, OPTIONS
> {quote}
> The documentation indicates that 'cors/methods' is used to control which HTTP 
> methods will be accepted: 
> http://docs.couchdb.org/en/2.0.0/config/http.html?highlight=enable_cors#cors/methods
> However when I make an OPTIONS request I receive '405 Method Not Allowed' as 
> a response. Additionally the response contains the following in it's headers:
> {quote}
> Allow:DELETE,GET,HEAD,POST,PUT,COPY
> {quote}
> Which seems to indicate that my configuration is not being used.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to