79372792

Date: 2025-01-20 22:29:15
Score: 2.5
Natty:
Report link

So anyone else who runs into this issue... I am using an API Gateway authorizer to lock down the API Gateway to only accept requests from cloud front (because im using an HttpApi and wanted a WAF as well). Turns out when you do that the APIGatewayHttpApiV2ProxyFunction class overwrites existing authorization. I was able to fix this by overriding the FunctionHandlerAsync and setting the authorizer to null on the incoming request.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mike Gilge