Cloud Functionsでhttps.onCallを利用しているのにCROSのエラーが出る
https.onCallを利用している場合はCROSの設定等をしなくてもよしなにしてくれるはずだが下記のようなエラーが出た
Access to fetch at 'https://<another-location>-<your-project>.cloudfunctions.net/<your-function>' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
原因は、指定していたFunctionsの関数名をtypoしていただけだった・・・ エラーメッセージが不適切で混乱したというお話し onCallを使っているのにCROSのエラーが出た場合は関数名を間違えていないかよく確認しましょう