fireship-io / fireship.io

Build and ship your app faster https://fireship.io
3.49k stars 1.3k forks source link

courses/cloud-functions/intro-setting-up-firebase-cloud-functions/ #737

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

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/

grapevinegizmos commented 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

grapevinegizmos commented 2 years ago

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.