PouchDB security

前端 未结 3 2116
难免孤独
难免孤独 2020-12-16 16:47

What\'s the best security practice to follow while using PouchDB on the client-side to access a remote server?

The example on https://pouchdb.com/getting-started.htm

3条回答
  •  清歌不尽
    2020-12-16 17:01

    Here's a really good article regarding all things auth for CouchDB.

    I've got a production server with CouchDB configured to use HTTP over localhost but external requests require HTTPS redirected via stunnel to CouchDB.

    On the client I use PouchDB to maintain a local, replicated db. As part of the handshake to establish communication with CouchDB over HTTPS, the software acquires CouchDB credentials from another server - the credentials are never stored client side.

    pouchdb-authentication is a good plugin, but I've found it better to handle auth personally.

提交回复
热议问题