- 
                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: taskA general taskA general task
Milestone
Description
Chandan opened SPR-12283 and commented
Spring sockjs library adds CORS header based on "origin" in the incoming request -unless it detects the header pre-added by Servlet filter or by any other mechanism.
We have a use case where CORS IP white listing is taken care by external system (Say some interceptor). If some how it is bypassed, sockjs will allow connection from any origin (because, incoming "origin" value will be mirrored in header) -opening a security loophole.
If there is an option to disable automatic addition of header, then even if some one hacks into sockjs url directly, browser will throw a CORS error.
Affects: 4.0 GA
This issue is a sub-task of #16921
Referenced from: commits 58f4014
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: taskA general taskA general task