-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Ted Pennings opened SPR-8346 and commented
The MappingJacksonJsonView class should support some sort of JSONP callback.
Requests of the form http://host/path/resource.json?callback=fnx should return the response in the following format:
fnx({obj:val, obj2, val});
The callback function value should be a query parameter from the request so the client can easily modify it on individual requests.
This is very useful for cross-domain Ajax/REST requests in a browser. It can be easily added by extending MappingJacksonJsonView, but it would be awesome if Spring MVC supported it out of he box.
Affects: 4.0.5
Issue Links:
- Deprecate JSONP support and update MappingJackson2JsonView defaults [SPR-16798] #21338 Deprecate JSONP support and update MappingJackson2JsonView defaults
Referenced from: commits 5dc27ee
3 votes, 7 watchers
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement