code: func (r *ResourceDefinition) AllOrigins() []*CORSDefinition {
  	all := make(map[string]*CORSDefinition)
  	for n, o := range Design.Origins {
  		all[n] = o
  	}
  	for n, o := range r.Origins {
  		all[n] = o
  	}
  	names := make([]string, len(all))
  	i := 0
  	for n := range all {
  		names[i] = n
  		i++
  	}
  	sort.Strings(names)
  	cors := make([]*CORSDefinition, len(names))
  	for i, n := range names {
  		cors[i] = all[n]
  	}
  	return cors
  }
docs: // AllOrigins compute all CORS policies for the resource taking into account any API policy.
  // The result is sorted alphabetically by policy origin.