Compare commits

..

1 Commits

Author SHA1 Message Date
853f0da10d fix(api): change import type to value imports for DTOs in controllers
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-03-01 14:55:01 -06:00

View File

@@ -111,9 +111,14 @@ export class CsrfGuard implements CanActivate {
throw new ForbiddenException("CSRF token not bound to session");
}
} else {
this.logger.debug({
event: "CSRF_SKIP_SESSION_BINDING",
method: request.method,
path: request.path,
reason: "User context not yet available (global guard runs before AuthGuard)",
});
}
// Note: when userId is absent, the double-submit cookie check above is
// sufficient CSRF protection. AuthGuard populates request.user afterward.
return true;
}