We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef03abd commit 15c2cc4Copy full SHA for 15c2cc4
pkg/server/server.go
@@ -83,7 +83,7 @@ func Serve(dbUrl string, natsUrl string) error {
83
router.Use(middleware.AllowContentType("application/octet-stream", "application/json"))
84
router.Use(cors.New(cors.Options{
85
AllowedOrigins: []string{"*"},
86
- AllowedMethods: []string{"GET", "POST", "DELETE"},
+ AllowedMethods: []string{"GET", "POST", "DELETE", "OPTIONS"},
87
AllowedHeaders: []string{"*"},
88
MaxAge: 50,
89
}).Handler)
0 commit comments