From 33b7c8ae8342e026865149d814b0515c71e777d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thor=20Anker=20Kvisg=C3=A5rd=20Lange?= Date: Tue, 12 Dec 2023 13:17:27 +0100 Subject: [PATCH] feat: Allow delete operations (#17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thor Anker Kvisgård Lange --- pkg/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 1943ba2..486ad7c 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -32,7 +32,7 @@ func RegisterAuthEndpoint(e *echo.Echo, hashKey, blockKey []byte, providers map[ g := e.Group("/auths", middleware.CORSWithConfig(middleware.CORSConfig{ AllowOrigins: origins, - AllowMethods: []string{http.MethodPut, http.MethodPost}, + AllowMethods: []string{http.MethodPut, http.MethodPost, http.MethodDelete}, AllowCredentials: true, }))