XMLHttpRequest Error means only 2 things:-- 1) You might not be sending the request to the proper API 2) You might be sending proper data to testing server from production product.