Back to Remix

Minor.Initial Release

packages/csrf-middleware/.changes/minor.initial-release.md

2.11.1475 B
Original Source

Add the initial release of @remix-run/csrf-middleware.

  • Expose csrf(options) and getCsrfToken(context) for session-backed CSRF protection in Remix apps that accept unsafe form submissions.
  • Validate a per-session token together with request origin metadata, with support for token transport in headers, form data, and query params.
  • Allow apps to layer csrf() after cop() when they need stricter token-backed protection on top of browser-origin filtering.