Compare commits
No commits in common. "7ddb7ec4f81bc9b9f61071182caba2e569ffc2b2" and "61db4ff54d1a5c11594dd6580277b889402a35d9" have entirely different histories.
7ddb7ec4f8
...
61db4ff54d
1 changed files with 1 additions and 2 deletions
|
|
@ -44,9 +44,8 @@ func main() {
|
|||
|
||||
server := handlers.NewServer(queries, AppConfig.JwtPrivateKey)
|
||||
|
||||
log.Info("allow origins:", AppConfig.ServiceAddress)
|
||||
r.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{"*"},
|
||||
AllowOrigins: []string{AppConfig.ServiceAddress},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue