{"id":8115,"date":"2015-11-26T13:46:11","date_gmt":"2015-11-26T13:46:11","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/26\/sync-pouchdb-with-couchdb-server-open-source-projects-pouchdb-pouchdb\/"},"modified":"2022-08-30T15:03:00","modified_gmt":"2022-08-30T15:03:00","slug":"sync-pouchdb-with-couchdb-server-open-source-projects-pouchdb-pouchdb","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/26\/sync-pouchdb-with-couchdb-server-open-source-projects-pouchdb-pouchdb\/","title":{"rendered":"Sync PouchDB with CouchDB server-open source projects pouchdb\/pouchdb"},"content":{"rendered":"<p>I follow the guide getting started from getting started<\/p>\n<p>For enable CORS the guide proposes this command:<\/p>\n<pre><code>    $ curl -X PUT $HOST\/_config\/httpd\/enable_cors -d '\"true\"'\n    $ curl -X PUT $HOST\/_config\/cors\/origins -d '\"*\"'\n    $ curl -X PUT $HOST\/_config\/cors\/credentials -d '\"true\"'\n    $ curl -X PUT $HOST\/_config\/cors\/methods -d '\"GET, PUT, POST, HEAD, DELETE\"'\n    $ curl -X PUT $HOST\/_config\/cors\/headers -d \\\n      '\"accept, authorization, content-type, origin\"\n<\/code><\/pre>\n<p>But I read in the file default.ini, that I can\u2019t set origins: * and credentials = true at the same time. In effect if I follow the above command the synchronization work well.<\/p>\n<p>Why therefore default.ini say that isn&#8217;t possible set origins: * and credentials = true?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I follow the guide getting started from getting started For enable CORS the guide proposes this command: $ curl -X PUT $HOST\/_config\/httpd\/enable_cors -d &#8216;&#8221;true&#8221;&#8216; $ curl -X PUT $HOST\/_config\/cors\/origins -d &#8216;&#8221;*&#8221;&#8216; $ curl -X PUT $HOST\/_config\/cors\/credentials -d &#8216;&#8221;true&#8221;&#8216; $ curl -X PUT $HOST\/_config\/cors\/methods -d &#8216;&#8221;GET, PUT, POST, HEAD, DELETE&#8221;&#8216; $ curl -X PUT $HOST\/_config\/cors\/headers -d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8115","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8115"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8115\/revisions"}],"predecessor-version":[{"id":8610,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8115\/revisions\/8610"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}