I use an external api that works very well in the postman, but does not work when I call from angularjs.
This is how I call from my angular js
$http.post('http://api.quickblox.com/users.json', {
token: '2ba123a8c43664886c66702fb81b779b094cc7b8',
'user[email]': email,
'user[login]': email,
'user[login]': email,
'user[password]': password
}).then(function (results) {
console.log('mid');
});
Here is a preview image
It works well.

But it does not work when I make an angularjs call
Here is a screenshot of the answer when I call angularjs call

user4538704
source
share