javascript - CORS AJAX request error with Venmo's API -


i trying make request client side code grab user information venmo's api:

getuser: function(code) {     var url = 'https://api.venmo.com/v1/users/:user_id?access_token=' + code;     $.ajax({       url: url,       type: 'get',       datatype: 'json',       crossdomain: true,       success: function(data) {         console.log(data)       },       error: function() {         console.log('error');       },     })   } 

however, when getuser called, i'm getting cors error saying:

access-control-allow-origin error

i tried adding crossdomain:true property options passed ajax request seems not have effect. supposed set cors headers on client side somehow?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -