From dcab0b46cd831d75d0b30612432abbb607bf7ce0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 14:13:40 -0400 Subject: [PATCH] fix: upload cors does not support wildcard methods --- api/s5/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 8e0ecfc..12604a6 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -183,7 +183,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) { AllowOriginFunc: func(origin string) bool { return true }, - AllowedMethods: []string{"*"}, + AllowedMethods: []string{"POST"}, }) routes := map[string]jape.Handler{