CORS Error When Deploying V1, V2 Functions in a Single Directory and Calling Callable V2 Function #6481
Labels
api: functions
closed-by-bot
Needs: Author Feedback
Issues awaiting author feedback
no-recent-activity
type: bug
[REQUIRED] Environment info
firebase-tools: 12.7.0
Platform: macOS
[REQUIRED] Test case
After deploying V1 functions and V2 functions, which include a callable V2 function (onCall), all within a single directory using the command
firebase deploy --only functions
, I encountered a problem when attempting to call the callable V2 function from a web app using the web-modular API (specifically, httpsCallable). The function failed to work and returned a CORS error.However, I noticed that when I deployed only the onCall function with its name specified, using the command
firebase deploy --only functions:theFunction
, the function worked as expected and returned the intended result.[REQUIRED] Steps to reproduce
Provided above
[REQUIRED] Expected behavior
Provided above
[REQUIRED] Actual behavior
Provided above
The text was updated successfully, but these errors were encountered: