You've already forked gun-manager-backend
update dependencies and improve CORS configuration
This commit is contained in:
7
main.go
7
main.go
@@ -30,7 +30,12 @@ func main() {
|
||||
e.Use(middleware.Logger())
|
||||
e.Use(middleware.Recover())
|
||||
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
|
||||
AllowOrigins: []string{"http://127.0.0.1:5173", "http://127.0.0.1:4173", "http://127.0.0.1:8000"},
|
||||
AllowOrigins: []string{
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:4173",
|
||||
"http://127.0.0.1:8000",
|
||||
},
|
||||
AllowMethods: nil,
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user