Skip to content

Commit e05498a

Browse files
authored
update CORS headers (#50)
1 parent 1249a82 commit e05498a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/api/middleware.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func CORSMiddleware() gin.HandlerFunc {
164164
"Access-Control-Allow-Headers",
165165
"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, "+
166166
"Authorization, accept, origin, Cache-Control, X-Requested-With")
167-
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT")
167+
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, PATCH")
168168

169169
if c.Request.Method == http.MethodOptions {
170170
c.AbortWithStatus(http.StatusNoContent)

0 commit comments

Comments
 (0)