I want to make a request http Webservice API to
https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS]
using javascript.
Can I do this on Sharepoint Online ?
When I handle by below code:
var urlstring =`https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS]`;
$.ajax({
url: urlstring,
success: function (data) {
//do smth with data
},
error: function(a,m){
//process error
}
I got this error:
XMLHttpRequest cannot load .No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://benhvienthuduc.sharepoint.com' is therefore not allowed access. The response had HTTP status code 404.