From 66db9960366447d25926b9532e190cd7c95d06e7 Mon Sep 17 00:00:00 2001 From: apple Date: Wed, 25 Sep 2024 20:10:41 +0200 Subject: [PATCH] Allow cross origin dirty --- server/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api.go b/server/api.go index 72b6c9294..cb65e64e6 100644 --- a/server/api.go +++ b/server/api.go @@ -152,6 +152,7 @@ func (repman *ReplicationManager) rootHandler(w http.ResponseWriter, r *http.Req if err != nil { log.Printf("rootHandler read error : %s", err) } + w.Header().Set("Access-Control-Allow-Origin", "*") w.Write(html) }