fix
This commit is contained in:
parent
61db4ff54d
commit
570be2a68b
2 changed files with 3 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ func main() {
|
|||
server := handlers.NewServer(queries, publisher, rpcClient)
|
||||
|
||||
r.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{AppConfig.ServiceAddress},
|
||||
// AllowOrigins: []string{AppConfig.ServiceAddress},
|
||||
AllowOrigins: []string{"*"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue