[PATCH phosphor-rest-server] Add support for serving jsonp

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed Mar 30 02:40:56 AEDT 2016


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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/phosphor-rest-server/17)
<!-- Reviewable:end -->


https://github.com/openbmc/phosphor-rest-server/pull/17

Brad Bishop (1):
  Add support for serving jsonp

 obmc-rest | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

-- 
2.7.1




More information about the openbmc mailing list