The error you are getting is because of security restriction that prevents requests being made from one domain to another ie from xxx.sharepoint.com is requesting sms.vietguys.biz . There are couple of ways toTo overcome this and mosta commonly used practice is called CORS and another method is by using JSONP