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

Andrew Jeffery andrew at aj.id.au
Fri Apr 1 09:27:20 AEDT 2016


Hi Brad,

On Tue, 2016-03-29 at 10:40 -0500, OpenBMC Patches wrote:
> 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 description covers the what and the how, but I'm not clear on the
why. Can you add some words describing the motivation for the change
and/or use-cases this enables? Maybe it's my ignorance of web
development shining through :)

Cheers,

Andrew

> 
> <!-- 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(-)
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160401/f51a067b/attachment.sig>


More information about the openbmc mailing list