From 712eb4a4369e5b77b23c06ce2c257c205958844b Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Wed, 22 Jan 2025 22:32:26 +0100 Subject: [PATCH 1/2] feat: enable cors --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 65b46ee..3c1836d 100644 --- a/server.go +++ b/server.go @@ -144,7 +144,7 @@ func start(ctx context.Context, cfg *config) error { // Add CORS. handler = cors.New(cors.Options{ AllowedOrigins: []string{"*"}, - AllowedMethods: []string{http.MethodGet, http.MethodOptions}, + AllowedMethods: []string{http.MethodGet, http.MethodOptions, http.MethodPut}, MaxAge: 600, }).Handler(handler) From e262b2091ab552d362e44835abd320f46657cb27 Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Thu, 23 Jan 2025 08:51:10 +0100 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f316e4c..7f06354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ The following emojis are used to highlight certain changes: ### Added +- Enabled CORS for PUT requests to `/routing/v1/ipns`. + ### Changed ### Removed