AWS API Gateway: Pass Referrer URL

后端 未结 2 1685
南笙
南笙 2021-02-10 18:23

Is it possible for requests to the API-Gateway to pass the referrer URL to Lambda? For example, I\'d love to let my lambda functions know if a request comes from the domain \"go

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 18:45

    It's an HTTP header, so if you are mapping HTTP headers in the template it will be passed to the Lambda function. Look at this answer for an example of how to map HTTP headers in the request template.

提交回复
热议问题