about summary refs log tree commit diff
path: root/modules/obsidian-livesync.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/obsidian-livesync.nix')
-rw-r--r--modules/obsidian-livesync.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/obsidian-livesync.nix b/modules/obsidian-livesync.nix
index cfad4f3..e576eb0 100644
--- a/modules/obsidian-livesync.nix
+++ b/modules/obsidian-livesync.nix
@@ -79,7 +79,7 @@ in
 						proxy_set_header X-Real-IP "$remote_addr";
 						proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
 						proxy_set_header X-Forwarded-Proto "$scheme";
-						add_header Access-Control-Allow-Origin "app://obsidian.md" always;
+						add_header Access-Control-Allow-Origin "$http_origin" always;
 						add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always;
 						add_header Access-Control-Allow-Headers "Content-Type, Authorization" always;
 						add_header Access-Control-Allow-Credentials "true" always;