I´m using mvc futures 2 with WebApiEnabled for XML and JSON support. But due to cross domain issues with jQuery $.ajax I´m lookin in to JSONP.
Is there a simple way to extend futures rest function for JSONP or should I do something else.
Do anyone have some hints on this subject ?
The REST for ASP.NET MVC SDK contains a Word file explaining how you could extend it by adding a custom format:
In the included
MovieAppsample you will find an implementation forAtomFormatHandlerwhich you could use as a base for adding the JSONP functionality. I’ve also written a JsonpResult which you may take a look at.