openbmc / phosphor-rest-server

REST server that transposes dbus interfaces to REST
Apache License 2.0
4 stars 11 forks source link

Add support for serving jsonp #17

Closed bradbishop closed 8 years ago

bradbishop commented 8 years ago

Jsonp adds a javascript wrapper to json responses. It allows client applications to work around cross domain restrictions imposed by some browsers. For more information on jsonp: https://en.wikipedia.org/wiki/JSONP

To get a jsonp response, an application adds a callback url parameter with the desired name of the wrapper: https://192.168.252.1/list?callback=my_callback


This change is Reviewable