-
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #68: Add the CsrfHeaderMiddleware
middleware to use custom HTTP header to prevent forgery of requests, add the CsrfMiddleware::withSafeMethods()
method to configure a custom safe HTTP methods list
#68
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #68 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 47 72 +25
===========================================
Files 8 10 +2
Lines 128 201 +73
===========================================
+ Hits 128 201 +73 ☔ View full report in Codecov by Sentry. |
Thanks for a pull request. I've left some comments. Also, tests are currently failing. Needs fixing. |
Please check the readme with some links to the used yii packages. |
CsrfHeaderMiddleware
middleware to use custom HTTP header to prevent forgery of requests, add the CsrfMiddleware::withSafeMethods()
method to configure a custom safe HTTP methods list
Thank you! |
#65
Added new
CsrfHeaderMiddleware
Added new method
CsrfMiddleware::withSafeMethods()