im trying get acsess token in my angular app but i get 400 error bad request. from postman there is no problem and i get the token this is in my js code. i removed some info from my code here.

 return $http(
                        url: 'https://login.salesforce.com/services/oauth2/token',
                        method: "POST",
                        data : {
                            'client_id' : 'jD7TnTNigSlQouxCndKvmuhFoPrT8U5ScDsskdq7A',
                            'client_secret' : '6148471690',
                            'username' : 'test.com',
                        headers: {
                            'Content-Type': 'application/x-www-form-urlencoded'


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.