Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't cache WebSocket request in RequestCache #16741

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuezk
Copy link
Contributor

@yuezk yuezk commented Mar 16, 2025

The WebSocket connection request should not be cached. Since it doesn't accept a custom header, we cannot use X-Requested-With as the workaround. Instead, we can match the Upgrade: websocket header and ignore it by default.

yuezk added a commit to yuezk/spring-security that referenced this pull request Mar 16, 2025
PR spring-projectsgh-16741

Signed-off-by: Kevin Yue <yuezk001@gmail.com>
@yuezk yuezk force-pushed the not_save_websocket_request branch from 2340aeb to 09f8287 Compare March 16, 2025 15:11
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 16, 2025
PR spring-projectsgh-16741

Signed-off-by: Kevin Yue <yuezk001@gmail.com>
@yuezk yuezk force-pushed the not_save_websocket_request branch from 09f8287 to e67bd91 Compare March 18, 2025 04:58
@yuezk yuezk changed the title Don't cache WebSocket request Don't cache WebSocket request in RequestCache Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants