Access headers in AWS API Gateway using HTTP Proxy?

Recently I had to try using an API Gateway HTTP proxy to pass an AWS SigV4 HTTP request to an endpoint. After testing and debugging found that the Authorization is being consumed and not passed! So while sending the request to the API Gateway - I sent Authorization and a copy of the Authorization as another header "myauth". (I was able to do this since the request is coming from my own client.)

In the method request I added Authorization and myauth as HTTP Headers Method Request - HTTP Headers

In the Integration Request - HTTP Headers I mapped myauth to Authorization before it was forwarded to the endpoint

Integration Request - HTTP Headers

Dont know if this is the best way to do this or if there could be any potential issues but this worked! Hope this helps someone or gives some ideas.


API Gateway strips the AWS SigV4 Authorization header due to security reasons. If you are using other Authorization mechanism like OAuth, the header wouldn't be stripped.