Getting Exception while trying to send sms

url: “**&mobilenumber=”+mobileNo+"&message=Hello&sid=SMSCountry(default)&mtype=N&DR=Y",
type: ‘GET’,
async: true,
success: function (response) {

In the above code i am getting the below exception ,

XMLHttpRequest cannot load!…mobilenumber=******&message=Hello&sid=SMSCountry(default)&mtype=N&DR=Y. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access.

We are using symfony,php7.
I am new to this.Kindly provide me the solution to solve this?