adunkman/node-trello

Access-Control-Allow-Origin error inside Meteor App

Opened this issue · 0 comments

I'm attempting to use this package to interact with the Trello API inside a Meteor app. However running through setup and attempting to make an api call in my client-side javascript file, I get this error.

Link to error Image

This is my code in my javascript file, following the documentation for the package.

var Trello = require('node-trello');

var t = new Trello(Meteor.settings.public.trelloKey, Meteor.settings.public.trelloToken);
t.get('/1/members/me', function(err, data) {
    if(err) throw err;
    console.log(data);
});