Xhr.send(data);

  xhr.send(data);

this is causing somekind of problem with cloudfunctions

I think cloudfunction is nodejs base, and nodejs don’t have xhr

@haxnetsama

XHR API is browser side while cloud runs on server side.

There is, however, a node module xmlhttprequest that does.