vrtmrz / obsidian-livesync

MIT License
3.93k stars 132 forks source link

enable_cors is wrong #379

Open a7hybnj2 opened 4 months ago

a7hybnj2 commented 4 months ago

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 commented 4 months ago

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