No 'Access-Control-Allow-Origin' header is present on the requested resource

Hi there!

my code is:

var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘https://api.backendless.com/v1/users/userroles’, true);
xhr.setRequestHeader(“Content-Type”, “application/json”);
xhr.setRequestHeader(“application-id”, “6345C8C0-32CE-B576-FF92-2C2363779F00”);
xhr.setRequestHeader(“secret-key”, “***”);
xhr.setRequestHeader(“application-type”, “REST”);
xhr.send(JSON.stringify({ }));
xhr.onreadystatechange = function (e) {
console.log(e);
}
and i’m gettind error:XMLHttpRequest cannot load https://api.backendless.com/v1/users/userroles. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:53634’ is therefore not allowed access. The response had HTTP status code 404.

How to solve it ?
ThanX

Changed POST to GET method and it’s works!