News for hackers. Stuff that matters.
Re:HackerNews API: What if HN does not have API? Make API on... by altano on Saturday June 02, 2012 @05:36PM (#4059253)
Can you add support for CORS (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing)?

Can you add support for taking existing JSON API (rather than scraping HTML)? This useful for APIs that are neither accessible with CORS nor JSONP, APIs that are provided by incompetent mental midgets who don't answer emails or participate to their Google Group (cough MBTA cough).

Re:HackerNews API: What if HN does not have API? Make API on... by sathish316 on Saturday June 02, 2012 @06:02PM (#4059323)
If i understood correctly JSONP supports only GET but CORS supports all http methods. APIfy can only provide GET Requests (Index and Show) over a static html page
Re:HackerNews API: What if HN does not have API? Make API on... by cheeaun on Saturday June 02, 2012 @08:11PM (#4059623)
That's one of the advantages of CORS. The other advantage is it allows cross-domain XMLHttpRequest requests in the browser, which will have better error handling than JSONP.