Change CORS to Cors on CLI options, specify origins as an option
This commit is contained in:
@@ -10,7 +10,7 @@ func SetupMiddlewares(group *gin.RouterGroup) {
|
||||
group.Use(requestInspectMiddleware())
|
||||
}
|
||||
|
||||
if command.Opts.CORS {
|
||||
if command.Opts.Cors {
|
||||
group.Use(corsMiddleware())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user