How to get query params when I use <form> with POST method to trigger Firebase http functions?

后端 未结 1 454
太阳男子
太阳男子 2021-01-24 18:55

I am trying to pass some query params to my http function in Firebase in a secure way. My params are not really sensitive like passwords, etc, they are some booleans, etc that d

相关标签:
1条回答
  • 2021-01-24 19:27

    res.query allows you to get parameters coming from the query string of a request. A POST request doesn't use the query string, so you can't use res.query. POST sends parameters to the request body.

    To access POST parameters in the request body that are coming form a form, you can use req.body as described in the Cloud Functions documentation.

    0 讨论(0)
提交回复
热议问题