Firebase Function
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const cors = require('cors')({ origin: true });
exports.addMessage = functions.https.onCall((data, context) => {
return { text: "Test" };
});
Issue
The problem is when i call this function from the app i first get finished with status code: 204 and after that finished with status code: 200
How can i prevent this?