couchdb-cors-config

CouchDB CORS configuration

Usage no npm install needed!

<script type="module">
  import couchdbCorsConfig from 'https://cdn.skypack.dev/couchdb-cors-config';
</script>

README

CouchDB CORS Configuration

This repository hosts a single JSON file holding the required CORS configuration settings, which have been taken from pouchdb/add-cors-to-couchdb

You can push the configuration to CouchDB via couchdb-configure:

Installation

npm install --global couchdb-configure

Push Configuration

couchdb-configure http://localhost:5984 _config.json

You can also include this file in your project as part of a couchdb-bootstrap directory.