This commit is contained in:
2022-12-12 00:56:49 -06:00
parent 35bcd8534c
commit 14047df959

View File

@@ -13,7 +13,7 @@ func Run() {
r.Use(cors.New(cors.Config{
AllowOrigins: []string{"http://localhost:4000"},
AllowMethods: []string{"GET", "POST", "DELETE", "PATCH"},
AllowHeaders: []string{"Origin", "Content-Type"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
AllowOriginFunc: func(origin string) bool {