From 8bf4887daef461bed73efaa8c3664d75b745fb46 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 21 Mar 2024 14:58:26 -0400 Subject: [PATCH] fix: add GET and DELETE to cors --- 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 f4896da..f336f0e 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{"POST"}, + AllowedMethods: []string{"POST", "GET", "DELETE"}, AllowedHeaders: []string{"Authorization", "Content-Type"}, AllowCredentials: true, })