i used LAMBDA_PROXY integration, and have http method as ANY to allow all methods proxied to lambda, and enable cors.
Now there is no way i can configure “Access-Control-Allow-Methods” as methods passed via cors option are ignored and the default is “OPTIONS,ANY” which is invalid.
Why are method cors options ignored? from code i see that methods is explicitly emptied irrespective of config.
cors = event.http.cors;
cors.methods = ;
Is it a bug or is it working as intended? then how to use it with ANY apigateway method?