diff options
-rw-r--r-- | org-roam-ui.el | 4 |
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 |