feat: fully featured token checks
This commit is contained in:
parent
7956a8a961
commit
713c0adc14
6 changed files with 226 additions and 77 deletions
|
|
@ -46,7 +46,7 @@ func main() {
|
|||
|
||||
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