obsidian-livesync icon indicating copy to clipboard operation
obsidian-livesync copied to clipboard

enable_cors is wrong

Open a7hybnj2 opened this issue 1 year ago • 1 comments

Abstract

set enable_cors is wrong

Expected behaviour

With couchDB being 3.3.3 I expected it to be correct with this note Some initial configuration is required. Create a local.ini to use Self-hosted LiveSync as follows ([CouchDB has to be version 3.2 or higher](https://docs.couchdb.org/en/latest/config/http.html#chttpd/enable_cors), if lower enable_cors = true has to be under section [httpd] ):

Actually happened

When I hit the check button it listed enable_cors as wrong. When I move it to httpd the error goes away.

Reproducing procedure

Use the included ini and docker compose file and spin up an instance. Connect via obsidian and click the check button. See errors.

So, with couchdb 3.3.3 should it be in httpd or chttpd? With it in chttpd which is what the example used you get the "enable_cors is wrong" error when using the check button.

a7hybnj2 avatar Feb 11 '24 19:02 a7hybnj2

You also get the "cors.origins is wrong" error but I found this #373 which addresses that.

a7hybnj2 avatar Feb 11 '24 19:02 a7hybnj2