Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbaturin committed Oct 28, 2024
1 parent dfe9452 commit c8577a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ use Yiisoft\Http\Method;

return [
CsrfHeaderMiddleware::class => [
'withUnsafeMethods()' => [[Method::POST, Method::DELETE]],
'withUnsafeMethods()' => [[Method::POST]],
'withHeaderName()' => ['X-CSRF-PROTECTION'],
],
];
Expand Down

0 comments on commit c8577a5

Please sign in to comment.