[CORE] Introduce centralized error-handling middleware for security hardening (#157)#162
[CORE] Introduce centralized error-handling middleware for security hardening (#157)#162adityakrmishra wants to merge 1 commit into
Conversation
|
@adityakrmishra is attempting to deploy a commit to the Gaurav's projects Team on Vercel. A member of the Team first needs to authorize it. |
🛡️ SecureFlow AI Security Report🔴 CRITICAL | Contextual Leak in
|
6fb410d to
ef984e5
Compare
🛡️ SecureFlow AI Security Report🔴 CRITICAL | Vulnerability in
|
|
|
||
| return NextResponse.json({ message: 'Event successfully caught but ignored' }, { status: 200 }); | ||
|
|
||
| } catch (error: any) { |
There was a problem hiding this comment.
Why have you removed the error handling tho?
|
Give a look at the review |
Fixes #157. Implements a higher-order withErrorHandler wrapper in src/lib/middleware/ to intercept unhandled exceptions across API routes. This enforces strict sanitization, preventing stack traces or environment variables from leaking to the client layer.