added allow origins back
This commit is contained in:
parent
73db604a2c
commit
e13586908a
3
main.go
3
main.go
@ -22,10 +22,9 @@ func main() {
|
||||
router := gin.Default()
|
||||
router.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{"*"},
|
||||
AllowCredentials: true,
|
||||
AllowMethods: []string{"*"},
|
||||
AllowAllOrigins: true,
|
||||
AllowHeaders: []string{"*"},
|
||||
AllowCredentials: true,
|
||||
}))
|
||||
file, err := os.Open(os.Getenv(CONFIG_PATH_ENV_VAR))
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user