visualizer
visualizer copied to clipboard
CORS "issue" could be solved by using JSONP
Would be nice to not have to add CORS headers to the API server or end up using a proxy. To solve this, many APIs support JSONP by letting the user add ?callback=whatever to the URL. This wraps the JSON in whatever() and cors headers need not to be enabled on the server side.
Would it be possible to support this in the webservice search modules?
JSONP: http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about jQuery supports JSONP: http://www.htmlgoodies.com/html5/tutorials/learn-how-to-use-the-jsonp-data-format-with-jquery.html
Testcase: http://visualizer.epfl.ch/tiny/F6EOrqqiTu4W5KZWQ1TK (Original URL)