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

Fix handling of no csrf session token #4731

Merged
merged 1 commit into from Nov 4, 2020
Merged

Conversation

szechyjs
Copy link
Contributor

@szechyjs szechyjs commented Nov 4, 2020

The previous fix for #4671 added a guard for a completely empty session. However, it seems that even if you delete the rack.session cookie, the session will still contain session_id, thus its not actually empty?. This changes the guard to actually check for the csrf token.

@mperham mperham merged commit 09305a0 into sidekiq:master Nov 4, 2020
@mperham
Copy link
Collaborator

mperham commented Nov 4, 2020

thank you!

@szechyjs szechyjs deleted the fix_csrf branch November 4, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants