Firebase Cloud Functions https.onCall finished with status code: 204 : <p><strong>Firebase Function</strong></p>

<pre><code>const functions = require('firebase-functions');
const admin = require('firebase-admin');
const cors = require('cors')({ origin: true });

exports.addMessage = functions.https.onCall((data, context) =&gt; {
  return { text: "Test" };
});
</code></pre>

<p><strong>Issue</strong></p>

<p>The problem is when i call this function from the app i first get <strong>finished with status code: 204</strong> and after that <strong>finished with status code: 200</strong></p>

<p><a href="https://i.stack.imgur.com/J8brI.png" rel="noreferrer">204</a></p>

<p>How can i prevent this?</p>
