'Ajax jQuery net_ERROR aborted 401 unauthorised issue

Trying to consume Mule API by using ajax/jquery but always getting 401 unauthorized issue and when i used same credentials with postman in that case response are coming.

Any suggestion would be appreciated !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source