I setup AWS API Gateway with CORS successfully, when a request is valid I have a 200 status code and also CORS headers, that's nice.
But when AWS API Gateway Request Validator detects an invalid input, I have the status code is 400 but CORS headers are not sent...
That's really unfortunate, because the client sees a CORS errors instead of a real 400 error (for exemple with fetch
the client is not able to distinguish 400 errors because of CORS errors).
This question may be related to Get detailed error messages from AWS API Gateway Request Validator