A Rails API endpoint is returning sensitive user data in error messages in production. What is the immediate professional response?
-
A
Document it as a known issue
-
B
Disable detailed error responses in production via `config.consider_all_requests_local = false` and sanitize error output
-
C
Add a comment in the code explaining the exposure
-
D
Only fix it in the next scheduled release cycle