From 278dad628063853d28f592953ec3fdeb0ec7d6f1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 30 Jul 2024 09:44:01 +0100 Subject: [PATCH] fix: NIP-05 CORS error NIP-05 validation requests to the domian were rejected due to CORS --- netlify.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 34f0b47..9604ca6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ [build] command = "yarn run build" - publish = "build" \ No newline at end of file + publish = "build" +[[headers]] + for = "/.well-known/nostr.json" + [headers.values] + Access-Control-Allow-Origin = "*" \ No newline at end of file