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
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.