Hello,
I have a lambda function set up with API gateway, lambda-proxy integration.
I have set up a schema validation for the JSON payload, which works a treat if the request has a Content-Type:application/json
header.
I would like to be able to reject a request that does not have a Content-Type:application/json
header. I can see this is possible using the lambda integration, but I cannot see how to do this in a lambda-proxy. Is it possible at all?
Many thanks