diff --git a/internal/http/handlers/nostrjson.go b/internal/http/handlers/nostrjson.go index a03a3f6..8eaa799 100644 --- a/internal/http/handlers/nostrjson.go +++ b/internal/http/handlers/nostrjson.go @@ -12,6 +12,7 @@ type NostrJSON struct { } func (h *NostrJSON) Handle(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Cache-Control", "public, max-age=60") names, err := h.Users.Repo().ActiveByName(r.Context())