diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-17 14:05:16 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-17 14:05:16 +0300 |
commit | 30069e03f252ea4bded435f04e07baed7d2d5f79 (patch) | |
tree | 5727b45255f44649b49204707bd0ff302031d0cb | |
parent | b1882a37430e54fc29d3171b9ba561415fd95682 (diff) |
Add Access-Control-Allow-Origin: *
-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 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 |