diff --git a/README.md b/README.md index d2fe308..cc1dae2 100644 --- a/README.md +++ b/README.md @@ -94,14 +94,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a - [ownCloud](./docs/remote_services/webdav_owncloud/README.md) - [InfiniCloud](./docs/remote_services/webdav_infinicloud_teracloud/README.md) - [εšζžœδΊ‘ JianGuoYun/NutStore](./docs/remote_services/webdav_jianguoyun/README.md) -- About CORS: - - If you are using Obsidian desktop >= 0.13.25 or iOS >= 1.1.1, you can skip this CORS part. - - If you are using Obsidian desktop < 0.13.25 or iOS < 1.1.1 or any Android version: - - The webdav server has to be enabled CORS for requests from `app://obsidian.md` and `capacitor://localhost` and `http://localhost`, **AND** all webdav HTTP methods, **AND** all webdav headers. These are required, because Obsidian mobile works like a browser and mobile plugins are limited by CORS policies unless under a upgraded Obsidian version. - - Popular software NextCloud, OwnCloud, `rclone serve webdav` do **NOT** enable CORS by default. If you are using any of them, you should evaluate the risk, and find a way to enable CORS, before using this plugin, or use a upgraded Obsidian version. - - **Unofficial** workaround: NextCloud users can **evaluate the risk by themselves**, and if decide to accept the risk, they can install [WebAppPassword](https://apps.nextcloud.com/apps/webapppassword) app, and add `app://obsidian.md`, `capacitor://localhost`, `http://localhost` to `Allowed origins` - - **Unofficial** workaround: OwnCloud users can **evaluate the risk by themselves**, and if decide to accept the risk, they can download `.tar.gz` of `WebAppPassword` above and manually install and configure it on their instances. - - The plugin is tested successfully under python package [`wsgidav` (version 4.0)](https://github.com/mar10/wsgidav). See [this issue](https://github.com/mar10/wsgidav/issues/239) for some details. +- Very old version of Obsidian needs [configuring CORS](./docs/remote_services/webdav_general/webav_cors.md). - Your data would be synced to a `${vaultName}` sub folder on your webdav server. - Password-based end-to-end encryption is also supported. But please be aware that **the vault name itself is not encrypted**. diff --git a/docs/remote_services/webdav_general/webav_cors.md b/docs/remote_services/webdav_general/webav_cors.md new file mode 100644 index 0000000..e01dc12 --- /dev/null +++ b/docs/remote_services/webdav_general/webav_cors.md @@ -0,0 +1,10 @@ +If you are using Obsidian desktop >= 0.13.25 or iOS >= 1.1.1, you can skip this CORS part. + +If you are using Obsidian desktop < 0.13.25 or iOS < 1.1.1 or any Android version: + +- The webdav server has to be enabled CORS for requests from `app://obsidian.md` and `capacitor://localhost` and `http://localhost`, **AND** all webdav HTTP methods, **AND** all webdav headers. These are required, because Obsidian mobile works like a browser and mobile plugins are limited by CORS policies unless under a upgraded Obsidian version. +- Popular software NextCloud, OwnCloud, `rclone serve webdav` do **NOT** enable CORS by default. If you are using any of them, you should evaluate the risk, and find a way to enable CORS, before using this plugin, or use a upgraded Obsidian version. + - **Unofficial** workaround: NextCloud users can **evaluate the risk by themselves**, and if decide to accept the risk, they can install [WebAppPassword](https://apps.nextcloud.com/apps/webapppassword) app, and add `app://obsidian.md`, `capacitor://localhost`, `http://localhost` to `Allowed origins` + - **Unofficial** workaround: OwnCloud users can **evaluate the risk by themselves**, and if decide to accept the risk, they can download `.tar.gz` of `WebAppPassword` above and manually install and configure it on their instances. +- [Apache is also possible](./webdav_apache_cors.md). +- The plugin is tested successfully under python package [`wsgidav` (version 4.0)](https://github.com/mar10/wsgidav). See [this issue](https://github.com/mar10/wsgidav/issues/239) for some details. diff --git a/docs/apache_cors_configure.md b/docs/remote_services/webdav_general/webdav_apache_cors.md similarity index 100% rename from docs/apache_cors_configure.md rename to docs/remote_services/webdav_general/webdav_apache_cors.md