Using JSON-P for cross-domain and Promises. This is kind of an old approach to CORS, but still kind of around when the likes of IE 9 is being used.
/*global console, Promise*/
var jsonp = (function jsonpModule(window, document, Object, Promise, encodeURIComponent, setTimeout) {
var _api = {
get: get,
};
var _id = 0;
var _noop = function noop() {};
return _api;
/**
* Simple JSON-P implemen