From 30069e03f252ea4bded435f04e07baed7d2d5f79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Sat, 17 Jul 2021 14:05:16 +0300 Subject: Add Access-Control-Allow-Origin: * --- org-roam-ui.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index 5f6b451..2a9547d 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -22,7 +22,9 @@ (response (json-encode (list (cons 'nodes (mapcar 'nodes-row-to-cons nodes-db-rows)) (cons 'links (mapcar 'links-row-to-cons links-db-rows)))))) - (insert response))) + (progn + (insert response) + (httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")))) (defun nodes-row-to-cons (row) (list -- cgit v1.2.3