Skip to content

Instantly share code, notes, and snippets.

View micjamking's full-sized avatar
🏝️
Working remote

Mike King micjamking

🏝️
Working remote
View GitHub Profile
/**
* Copyright (c) 2015 Matthew Zipay <mattz@ninthtest.net>. All rights reserved.
* Licensed under the MIT License <http://opensource.org/licenses/MIT>.
*
* The problem:
* You need to make a cross-domain request for JSON data, but the remote
* server doesn't send the necessary CORS headers, and it only supports
* simple JSON-over-HTTP GET requests (no JSONP support).
*
* One possible solution: