I'm trying to test an https.onCall
function but I keep getting Access to fetch at 'https://<project>.cloudfunctions.net/<func>' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
I've also tried running it in the emulator, but I get the same result because the ports don't match. I have no idea how to enable CORS for an onCall
function.