2024-11-14 95次浏览

Minor verison of Yii CSRF package was released.

  • 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.
  • Deprecate CsrfMiddleware in favor of CsrfTokenMiddleware .