Open utterances-bot opened 2 years ago
Can you clarify how you solve the cors problem when running callable functions? You demonstrated how to handle cors issues if you're using express.js, but can't quite figure out where you put the cors({origin : true} piece in a callable function. I can't seem to figure out how to get it compile properly, and run properly when called from localhost
I realize now the error message is misleading, cors is not actually an issue with callable functions. It was a naming problem but the error message had me hunting down the wrong rabbit hole.
Firebase Cloud Functions Setup
How to setup a Firebase Cloud Functions environment with TypeScript
https://fireship.io/courses/cloud-functions/intro-setting-up-firebase-cloud-functions/