Files
stack/apps
Jason Woltje ae9ac808c1
All checks were successful
ci/woodpecker/push/api Pipeline was successful
fix(api): resolve CSRF guard ordering with global AuthGuard
CsrfGuard (APP_GUARD) runs before per-controller AuthGuard, so
request.user is always undefined when CSRF validates session binding.
Skip HMAC session-binding check when user context is unavailable;
the double-submit cookie pattern (cookie matches header) provides
sufficient CSRF protection on its own.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 20:22:41 -06:00
..