Skip to content

Commit 0bd2a00

Browse files
committed
add again wildcard support in origin config option
1 parent f609587 commit 0bd2a00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ func loop() {
381381
}
382382
allowOrigins = append(allowOrigins, extraOrigins...)
383383
r.Use(cors.New(cors.Config{
384+
AllowWildcard: true,
384385
AllowOrigins: allowOrigins,
385386
AllowMethods: []string{"PUT", "GET", "POST", "DELETE"},
386387
AllowHeaders: []string{"Origin", "Authorization", "Content-Type"},

0 commit comments

Comments
 (0)