Skip to content

v1.8.11

Latest

Choose a tag to compare

@onamfc onamfc released this 16 Mar 18:12
· 9 commits to main since this release

Bug Fixes

  • Fix CSRF validation failures on video recording uploadsVideoRecorder was using plain fetch() instead of fetchWithCsrf() for upload-url, complete-upload, and share POST requests, causing middleware to reject every request with 403
  • Add CSRF token cache TTL — Cached tokens now expire after 30 minutes to prevent stale token mismatches when cookies rotate
  • Auto-retry on CSRF failurefetchWithCsrf() now automatically fetches a fresh token and retries once on CSRF 403 errors
  • Fix response body consumption — Use response.clone() before reading the body during CSRF error detection, preventing callers from getting empty responses
  • Harden CSRF error detection — Use case-insensitive match for CSRF error string detection