[BUG] xhr requests were sending json blobs as form data instead of json