You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Peter Wilmott (JIRA)" <ji...@apache.org> on 2017/03/06 12:32:32 UTC
[jira] [Created] (COUCHDB-3319) Unable to modify cors/methods to
enable HTTP OPTIONS requests
Peter Wilmott created COUCHDB-3319:
--------------------------------------
Summary: 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.3.15#6346)