Response data is missing data field after preflight response

Describe your environment

  • Operating System version: ubuntu
  • Browser version: chrome
  • Firebase SDK version: “firebase”: “^5.5.6”,
  • Firebase Product: functions

Describe the problem

after a preflight response from the firebase function I get this error from the sdk

 Error: Response is missing data field.
    at new HttpsErrorImpl (index.cjs.js:58)
    at Service.<anonymous> (index.cjs.js:504)

I can not call the firebase functions from my app. I don’t know how to deal with this pre-flight issue. Maybe there’s another way to do it on firebase.

1 possible answer(s) on “Response data is missing data field after preflight response

  1. Same here, any updates?

    EDIT:
    Actually that issue is gone when I use a object with property data in response of the firebase function:
    res.status(200).send({ data: { ... } })