Compare commits

..

1 Commits

Author SHA1 Message Date
ChuhanJin
bdf2968771 fix(bridge-history-api): Fix cors (#726) 2023-08-05 13:55:30 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ func Route(router *gin.Engine, conf *config.Config) {
router.Use(cors.New(cors.Config{
AllowOrigins: []string{"*"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
AllowCredentials: true,
MaxAge: 12 * time.Hour,
}))

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.1.2"
var tag = "v4.1.3"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {