Merge branch 'auth' into dev
This commit is contained in:
commit
7ddb7ec4f8
1 changed files with 2 additions and 1 deletions
|
|
@ -44,8 +44,9 @@ func main() {
|
||||||
|
|
||||||
server := handlers.NewServer(queries, AppConfig.JwtPrivateKey)
|
server := handlers.NewServer(queries, AppConfig.JwtPrivateKey)
|
||||||
|
|
||||||
|
log.Info("allow origins:", AppConfig.ServiceAddress)
|
||||||
r.Use(cors.New(cors.Config{
|
r.Use(cors.New(cors.Config{
|
||||||
AllowOrigins: []string{AppConfig.ServiceAddress},
|
AllowOrigins: []string{"*"},
|
||||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
|
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
|
||||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
||||||
ExposeHeaders: []string{"Content-Length"},
|
ExposeHeaders: []string{"Content-Length"},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue