From f314f28dec8322fdd2a92bb57ed22eba099f3b73 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 20 Jul 2021 21:10:18 +0200 Subject: set cors header correctly --- org-roam-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-ui.el b/org-roam-ui.el index 6782fd5..8f796d2 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -61,6 +61,6 @@ (push (cons (car color) (car (cdr color))) ui-theme)) (insert (json-encode ui-theme)))) (insert "{}")) - (httpd-send-header t "application/json" 200 :Access-Control-Allow-Origin "*"))) + (httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*"))) (provide 'org-roam-ui) -- cgit v1.2.3