I tried the following code in Postman and it was working. Is there something wrong with the code?
$.ajax({
url: \'http://api.example.com/users/get\',
t
My problem was that POST requests need trailing slashes '/'.
I received the same error when I tried to call https web service as http webservice.
e.g when I call url 'http://api.example.com/users/get'
which should be 'https://api.example.com/users/get'
This error is produced because of redirection status 302 when you try to call http instead of https.