def access_control_allow_origin_star(func):
  """Decorator that adds Access-Control-Allow-Origin: * to any HTTPResponse
  allowing cross-site XHR access to the handler."""

  def allow_origin_access_star_wrapper(request, *args, **kwds):
    response = func(request, *args, **kwds)
    response["Access-Control-Allow-Origin"] = "*"
    return response

  return allow_origin_access_star_wrapper