Skip to content

Deprecate JSONP support and update MappingJackson2JsonView defaults [SPR-16798] #21338

@spring-projects-issues

Description

@spring-projects-issues

Meyyalagan Chandrasekaran opened SPR-16798 and commented

MappingJacksonJsonView class started supporting JSONP callback by default which can make applications vulnerable to JSONP Hijacking when developers upgrade their application to Spring 4.1 without realizing JSONP support coming with upgrade. 

It would be helpful if we can avoid cross-domain requests by default unless developers wanted to turn it on explicitly.


Reference URL: #12994

Issue Links:

Referenced from: commits 8748594, b80c13b

Backported to: 4.3.18

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions