Created
February 25, 2016 15:25
-
-
Save vajahath/010ef2c93b2b2237d204 to your computer and use it in GitHub Desktop.
jquery > post an object. Stringification is important!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: 'POST', | |
url: 'http://localhost:3000/auth/google/authCodeHandler', | |
contentType: 'application/json; charset=utf-8', | |
success: function (result) { | |
// Handle or verify the server response. | |
console.log(result); | |
}, | |
processData: false, | |
data: JSON.stringify({code: authResult['code']}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment