Skip to content

Commit 7b5fd53

Browse files
committed
Allow PATCH method for CORS
1 parent c8f5418 commit 7b5fd53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfigurati
9696
}
9797

9898
corsHandler := cors.New(cors.Options{
99-
AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete},
99+
AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete, http.MethodPatch},
100100
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", audHeaderName},
101101
AllowCredentials: true,
102102
})

0 commit comments

Comments
 (0)