Main.dart/Cors Issues

Database & APIs

Hi! In the backend of my development for my application, I made a cloud function via Flutterflow. Which takes the input of a .json file, it then extracts the data and puts it into GPT and then returns something else. Now, my API call works and the API call worked in test/run mode. Now after I made the API call private and tried to run it in the publish mode I got a main.dart issue. (Previously I had a cors issue but I think I have gotten around it.) Now my main.dart file is still the default code that was put in it during the first stages of development. How do I negotiate the main.dart errors I get when running my private API Call in the published mode? Is it because the google cloud API call is returning/reading something different than being called in Flutterflow? Side Note : I do not need a permanent fix right now, I only need to make this work for a demo.

What have you tried so far?

To fix my cors issue I turned my API call private. Which in turn gave a different error. Although I haven't tried the publish mode on another machine besides my own. For my main.dart issue I have tried nothing.

Did you check FlutterFlow's Documentation for this topic?
No
2
1 reply