I get this error message: Access to fetch at 'https://us-central1-myapp.cloudfunctions.net/myFunction' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
The function looks like this:
exports.myFunction = functions.region("europe-central2").https.onCall((data, context) => {});
There should be a better way than adding members/principals through Google Cloud console.
EDIT: I'm also using the firebase functions framework to call the function.