Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Donnie Reese
17,211 PointsI have a question for the staff! I am writing a jquery plugin that might break CORS on the site.
The publicly-accessible JSON file that every user has is awesome. There is a lot of information in it that is useful on my site and it's dynamically updated when I learn new stuff, which is great!
Well, the teamtreehouse.com server does not have the CORS enabled in the software that serves the JSON file. I am assuming this because it does issues a CORS error anytime you try to make an ajax request for the file.
I wrote a simple jquery plugin that circumvented it. It has an attached PHP proxy script that I wrote that checks that the domain is only for teamtreehouse.com, checks to see if there is a cached copy of the file that is more than a day old, and if so, fetches it, refreshes the file and sends it to the plugin, lickity split.
The plugin itself uses handlebars.js to template the information and you can query for badge information and return all sorts of neat things to include on a portfolio.
Then I realized this may be against any terms of service on the site and I don't want to publish this plugin to github without making sure that this is okay with the original owners of the information. Call me prudent.
Thanks!
Donnie Reese
17,211 PointsMarcus Parsons , I did do that. They sent me a response today saying that they are checking on it.
I know that the code isn't exactly nefarious, however I would like to make sure that the code doesn't go against the TOS.

Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsHey Donnie, have you tried reaching out to the help staff at that email address? help@teamtreehouse.com