Skip to content

Commit

Permalink
Fix: add PATCH for CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Dec 6, 2018
1 parent 2b93c9d commit 6f1bc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/route/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Start(addr string, secret string) {

cors := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Content-Type", "Authorization"},
MaxAge: 300,
})
Expand Down

0 comments on commit 6f1bc3d

Please sign in to comment.