A production Java web app returns full stack traces to users when an exception occurs. What is the most appropriate deployment fix?
-
A
Configure a generic custom error page and log details server-side
-
B
Enable verbose logging in the browser console
-
C
Wrap every method in an empty catch block
-
D
Move the stack trace into an HTML comment