Closed bkalinovsky closed 5 years ago
Use functions.https.onCall (https://firebase.google.com/docs/reference/functions/functions.https#.onCall). AngularFire is using the underlying firebase client SDK, and for functions called by the client this is what it is expecting.
When using onCall (instead of onRequest) you don't need to do CORS yourself either.
I am try use firebase functions in angular application. I use angularfire2 library In result:
{err: Error: Response is not valid JSON object. at new HttpsErrorImpl (http://localhost:4200/vendor.j…}
source function:
source angular app: