You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -303,10 +303,15 @@ else if (transportType.supportsCors()) {
303
303
}
304
304
else {
305
305
Principalprincipal = session.getPrincipal();
306
-
if (principal != null && !principal.equals(request.getPrincipal())) {
307
-
logger.debug("The user for the session does not match the user for the request.");
308
-
response.setStatusCode(HttpStatus.NOT_FOUND);
309
-
return;
306
+
if (principal != null) {
307
+
// Compare usernames, not full equality (different login timestamps)
0 commit comments