How can I get the raw request body in a Google Cloud Function?

前端 未结 3 1901
广开言路
广开言路 2021-01-03 23:38

I need the raw request body to be able to SHA-1 digest it to validate the Facebook webhook X-Hub-Signature header that\'s passed along with the request to my Firebase Functi

3条回答
  •  感情败类
    2021-01-04 00:02

    Unfortunately the default middleware currently provides no way to get the raw request body. See: Access to unparsed JSON body in HTTP Functions (#36252545).

提交回复
热议问题