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 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)