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: httponly correction in CSRFMiddleware #3739

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

cofin
Copy link
Member

@cofin cofin commented Sep 14, 2024

Description

When httponly is True, it's impossible to set the header. This fix allows this configruation to correctly validate.

Closes

@cofin cofin requested review from a team as code owners September 14, 2024 20:00
@github-actions github-actions bot added area/middleware This PR involves changes to the middleware size: small type/bug pr/internal labels Sep 14, 2024
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.29%. Comparing base (ee11ac6) to head (dd1ca97).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3739   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files         330      330           
  Lines       15118    15120    +2     
  Branches     2399     2400    +1     
=======================================
+ Hits        14860    14862    +2     
  Misses        117      117           
  Partials      141      141           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@cofin cofin merged commit 1132554 into main Sep 14, 2024
26 checks passed
@cofin cofin deleted the csrf-httponly-cookietests branch September 14, 2024 21:04
cofin added a commit that referenced this pull request Sep 16, 2024
cofin added a commit that referenced this pull request Sep 16, 2024
Revert "fix: `httponly` correction in CSRFMiddleware (#3739)"

This reverts commit 1132554.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/middleware This PR involves changes to the middleware pr/internal size: small type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants