code: func (cors *CORSDefinition) Validate() *dslengine.ValidationErrors {
  	verr := new(dslengine.ValidationErrors)
  	if !cors.Regexp && strings.Count(cors.Origin, "*") > 1 {
  		verr.Add(cors, "invalid origin, can only contain one wildcard character")
  	}
  	if cors.Regexp {
  		_, err := regexp.Compile(cors.Origin)
  		if err != nil {
  			verr.Add(cors, "invalid origin, should be a valid regular expression")
  		}
  	}
  	return verr
  }
docs: // Validate makes sure the CORS definition origin is valid.