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

add CSRF validation by custom HTTP header #20280

Merged
merged 7 commits into from
Nov 28, 2024

Conversation

olegbaturin
Copy link
Contributor

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues #20279

Copy link

codecov bot commented Nov 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.85%. Comparing base (b49fa88) to head (9d5853d).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20280   +/-   ##
=========================================
  Coverage     64.84%   64.85%           
- Complexity    11399    11402    +3     
=========================================
  Files           430      430           
  Lines         37134    37140    +6     
=========================================
+ Hits          24080    24086    +6     
  Misses        13054    13054           

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

@samdark
Copy link
Member

samdark commented Nov 23, 2024

This is backport from Yii3. Good one.

@samdark samdark added this to the 2.0.52 milestone Nov 23, 2024
@samdark samdark requested review from a team November 23, 2024 13:06
framework/web/Request.php Outdated Show resolved Hide resolved
framework/web/Request.php Outdated Show resolved Hide resolved
framework/web/Request.php Outdated Show resolved Hide resolved
framework/web/Request.php Outdated Show resolved Hide resolved
@mtangoo
Copy link
Contributor

mtangoo commented Nov 27, 2024

I think this PR is good with exception of typos as pointed out by @bizley
@olegbaturin would you please address them?

@mtangoo
Copy link
Contributor

mtangoo commented Nov 28, 2024

@olegbaturin thanks for your time and efforts

@mtangoo mtangoo merged commit 1a54384 into yiisoft:master Nov 28, 2024
83 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants