Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Access-Control-Allow-Origin error inside Meteor App #55

Open
EthanHaley opened this issue Mar 30, 2018 · 0 comments
Open

Access-Control-Allow-Origin error inside Meteor App #55

EthanHaley opened this issue Mar 30, 2018 · 0 comments

Comments

@EthanHaley
Copy link

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);
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant