[news] Yii CSRF 2.2


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.