title: getting error : Your client does not have permission to get URL in firebase functions
body: <p>i am new in firebase, i have deploy one function, and it is using get method, </p>
  
  <pre><code>https://us-central******.cloudfunctions.net/addMessage
  </code></pre>
  
  <p>when i try to run this api, i am getting below error </p>
  
  <pre><code>Error: Forbidden
  Your client does not have permission to get URL /addMessage from this server.
  </code></pre>
  
  <p>Can anyone please help me to resolve this issue ?</p>
  
  <pre><code>exports.addMessage = functions.https.onRequest(async (req, res) =&gt; {
      // Grab the text parameter.
      const original = req.query.text;
      // Push the new message into the Realtime Database using the Firebase Admin SDK.
      const snapshot = await admin.database().ref('/messages').push({ original: original });
      // Redirect with 303 SEE OTHER to the URL of the pushed object in the Firebase console.
      res.redirect(303, snapshot.ref.toString());
  });
  </code></pre>