Skip to content

Commit 5fc7341

Browse files
committed
add: allow headers
1 parent 0ae33f1 commit 5fc7341

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ func main() {
1414

1515
config := cors.DefaultConfig()
1616
config.AllowAllOrigins = true
17+
config.AllowHeaders = append(config.AllowHeaders, "DeeAppId", "DeeAppSecret", "DeeTicket")
1718

1819
server.Gin.Use(cors.New(config))
1920

0 commit comments

Comments
 (0)