summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-17 13:16:00 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-17 13:16:00 +0200
commita93af1e2e8d2c512b04dfb3b1c53431162b3e580 (patch)
treed6461793ff30ee83e8f6d316b5083def5f478eb9 /org-roam-ui.el
parent2b32d0ae0f0afd13fc5eb667ad3f531a1d6943a6 (diff)
parent30069e03f252ea4bded435f04e07baed7d2d5f79 (diff)
merge pull
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index f89cf95..3f2c737 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