For now, I haven't set any error handling in api gateway to catch the lambda error.
Every when api error occurs, the error will only show as CORS problem in console from browser inspecter.
I can only see the error if I use Postman to send api, but cannot view the error in Browser inspecter.
It seems it can achieve by Lambda error regex, but it needs to uncheck the "use lambda proxy integration" in api gateway.
Is there any way to achieve it without unchecking the checkbox of "use lambda proxy integration"