code: func (h *Headers) HasCorsHeadersDefined() bool {
  	return h != nil && (h.AccessControlAllowCredentials ||
  		len(h.AccessControlAllowHeaders) != 0 ||
  		len(h.AccessControlAllowMethods) != 0 ||
  		h.AccessControlAllowOrigin != "" ||
  		len(h.AccessControlExposeHeaders) != 0 ||
  		h.AccessControlMaxAge != 0 ||
  		h.AddVaryHeader)
  }
docs: // HasCorsHeadersDefined checks to see if any of the cors header elements have been set