fix: allowed origins aren't passed to rest.NewRouter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
91fa9c6207
commit
1da68f2ad1
|
@ -137,7 +137,7 @@ func newServer(cfg serverConfig) (*http.Server, error) {
|
|||
EnnoblementService: ennoblementSvc,
|
||||
CORS: rest.CORSConfig{
|
||||
Enabled: apiCfg.CORSEnabled,
|
||||
AllowedOrigins: nil,
|
||||
AllowedOrigins: apiCfg.CORSAllowedOrigins,
|
||||
AllowedMethods: apiCfg.CORSAllowedMethods,
|
||||
AllowCredentials: apiCfg.CORSAllowCredentials,
|
||||
MaxAge: int(apiCfg.CORSMaxAge),
|
||||
|
|
Reference in New Issue
Block a user