incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Harvey <d...@arandomurl.com>
Subject Re: CORS support
Date Sat, 03 Nov 2012 20:39:02 GMT
I havent had a chance yet but will definitely testing it out tomorrow


On 3 November 2012 11:35, Robert Newson <rnewson@apache.org> wrote:

> Haven't had a chance yet, let's not merge until a review or two
>
>
> On 3 November 2012 18:15, Benoit Chesneau <bchesneau@gmail.com> wrote:
>
> > bump.
> >
> > Anyone tried it ? Is a merge in master OK for you?
> >
> > - benoît
> >
> >
> > On Thu, Nov 1, 2012 at 12:52 AM, Benoit Chesneau <bchesneau@gmail.com
> > >wrote:
> >
> > > Hello all,
> > >
> > > So I finally committed my patch about CORS support following the
> current
> > > W3C working draft [1]. This patch support simple and preflights
> requests
> > > for a couchdb node. Configuration can also be done for a specific
> vhost.
> > >
> > > To enable CORS you need to set the option `cors_enable = true`  (by
> > > default cors is disable). All origins are matched by default.
> > >
> > > To configure defaults cors settings you need to create the [cors]
> section
> > > in the ini file:
> > >
> > > [cors]
> > > allows_credentials = false
> > > ; List of origins separated by a comma
> > > ;origins =
> > > ; List of accepted headers separated by a comma
> > > ; headers =
> > > ; List of accepted methods
> > > ; methods =
> > >
> > > allows credentials allows you to accept connections to protected dbs
> and
> > > nodes.
> > >
> > >
> > > To set the options for a vhosts you will need to create a section with
> > the
> > > vhost name prefixed by "cors:" . Ex for the vhost example.com:
> > >
> > > ; Configuration for a vhost
> > > :[cors:example.com]
> > > ; allows_credentials = false
> > > ; List of origins separated by a comma
> > > ;origins =
> > > ; List of accepted headers separated by a comma
> > > ; headers =
> > > ; List of accepted methods
> > > ; methods =
> > >
> > > Some tests have been added but we need to increase their number to be
> > sure
> > > to cover all the features presented here.
> > >
> > > Anyway please tests, and let me know. This feature is available in the
> > > branch COUCHDB-431_cors:
> > >
> > > Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/0777262f
> > >
> > > Please test and let me know.
> > >
> > > - benoît
> > >
> > >
> > > [1] http://www.w3.org/TR/cors/#preflight-request
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message