about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-10-18 22:40:15 +0200
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-10-18 22:40:15 +0200
commit2eb1a14886e5290357285cab62e5ff5662b2fd56 (patch)
tree1eef78c824b64fd9d80f241e8debf17f179cc4b5 /modules
parentec2d857194a8c573cdcb76a59eada6a8e150ed19 (diff)
downloaddots-2eb1a14886e5290357285cab62e5ff5662b2fd56.tar.gz
dots-2eb1a14886e5290357285cab62e5ff5662b2fd56.zip
android hackaround
Diffstat (limited to 'modules')
-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;