When I try to get the token with postman I get the token from api.
but when I try to get the token from javascript, I get a CORS error.
the code:
$.post(“http://facial.softwareestrategico.com/api/authorize/access_token”,
{
grant_type: “client_credentials”,
client_id: “<client_id>”,
client_secret: “<client_secret>”
}, null, “json”)
.success(function (data) {
debugger;
})
.error(function () {
debugger;
});
return error:
Thanks, for your help.