I am using AuthenticationEntryPoint to handle the Authentication issues.To deliver the exception reason to the end-user.
response.sendError(responseCode, "errorReason")
I recently upgraded the spring boot from "2.2.11.RELEASE" to "2.4.4". Since then it is not working anymore. It is not providing the "errorReason" in the response received by the client now. Is there any change recently introduced in spring-boot which I am missing?