Skip to content

Same origin stops working for WebSocket/SockJS once any origin is configured [SPR-13464] #18044

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-13464 and commented

In absence of CORS configuration, WebSocket/SockJS allows same origin. Once an origin is added, same origin stops working (e.g. breaks in Chrome which sends an Origin header even even for same origin).

This doesn't seem intuitive. On the MVC side we seem to have chosen to allow same origin regardless, which makes more sense.

Let's consider this for 4.2.2.


Affects: 4.2.1

Referenced from: commits 299b776

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions