Implement JSONP (callbacks) in REST API
---------------------------------------
Key: GEOS-3591
URL: http://jira.codehaus.org/browse/GEOS-3591
Project: GeoServer
Issue Type: New Feature
Components: REST
Affects Versions: 2.0-RC2
Reporter: Ariel Núñez
Assignee: Andrea Aime
Priority: Minor
JSONP is script tag injection, passing the response from the server in to a user specified function
Example implementation (pseudocode)
http://example.com/geoserver/rest/function.json?callback=myFunc
outputData = process(request)
wrapper = request.GET['callback']
output = wrapper + "(" + data + ")"
print output
myFunc({"name" : "Remy", "id" : "10", "blog" : "http://remysharp.com"});
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira