Skip to content

Commit e3bbc8e

Browse files
committed
fix: fix CORS setting
1 parent 76c66e7 commit e3bbc8e

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
@@ -62,6 +62,7 @@ func main() {
6262

6363
// TODO: CORS setting
6464
config := cors.DefaultConfig()
65+
config.AllowedHeaders = []string{"*"}
6566
// if you want to allow all origins, comment the following two lines
6667
config.AllowAllOrigins = false
6768
config.AllowedOrigins = []string{"https://gin-template.vercel.app"}

0 commit comments

Comments
 (0)