UI Deploy

Curated, Short, Web UI Dev we Love.

JsonpMediaTypeFormatter–Web API JSONP

For some reason JSONP is not supported out of the box in the Web API framework. Seeing JSON is the most common API format these days and publishing an API implies the consumers of your API are not from your domain, I don’t quite get why we don’t have support for JSONP. Of course, keep in mind that you only need to support JSONP if you want to allow consumers that use browsers (rather than regular desktop applications), since without JSNOP browsers won’t allow cross domain calls.

view source

Advertisement