summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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