InfiniteUp is ready for iPhone Duo. Fold to focus, unfold to plan →
,

CORS Crash-Landing? Here’s How We Flew Straight Through FlutterFlow’s Latest Upgrade

Illustration for the InfiniteUp article “CORS Crash-Landing? Here’s How We Flew Straight Through FlutterFlow’s Latest Upgrade”

FlutterFlow recently rolled forward to a new Flutter SDK version, improving web performance and giving us more freedom with custom code—but inadvertently breaking Firebase Storage images for countless apps.

While other developers hit a wall, we quickly found a resourceful way around. Here’s exactly how we did it, step-by-step.


1. What Just Happened?

FlutterFlow upgraded its underlying Flutter SDK version, introducing CanvasKit/WebGL for rendering web apps. Great news for performance—but browsers now strictly enforce Cross-Origin Resource Sharing (CORS) policies on image loading from Firebase Storage buckets.

Publish your app after the upgrade without proper CORS configuration, and suddenly images vanish, replaced by errors like this in the browser console:

Access to fetch at
https://firebasestorage.googleapis.com/...
from origin https://<your-domain>
has been blocked by CORS policy

If you’re seeing this, you’re in good company—this affects nearly every FlutterFlow web app post-upgrade.


2. Why Did It Happen?

  • CanvasKit/WebGL demands same-origin image access, tightening security restrictions.
  • FlutterFlow provided a “Deploy CORS Proxy” option under Settings → Deployment → Web Publishing, but turning it on without proper coordination at the bucket level often causes conflicts, failing silently.
  • Without explicit CORS rules set on your Firebase Storage bucket, browsers will block images outright.

3. Quick Diagnostic Checklist

Confirm the issue within seconds:

  • Open DevTools (right-click → Inspect) and navigate to the Console.
  • Check for errors like:

    ... has been blocked by CORS policy
    
  • If your custom domain exhibits this issue (but FlutterFlow’s built-in preview does not), it’s a confirmed CORS issue.

4. The Fix: Step-by-Step Solution

You don’t need the Firebase CLI, local installs, or any complex setup—Google Cloud Shell alone gets the job done in less than 3 minutes:

Step 1: Launch Cloud Shell

Click here (or access via Google Cloud Console).

Step 2: Create the cors.json file in Cloud Shell:

nano cors.json

In the opened editor, paste the following content:

[
  {
    "origin": ["*"],
    "method": ["GET", "HEAD"],
    "responseHeader": ["Content-Type"],
    "maxAgeSeconds": 3600
  }
]

Save with Ctrl+O then Enter. Exit with Ctrl+X.

Step 3: Push the CORS configuration to your bucket:

gsutil cors set cors.json gs://<your-bucket-name>

Replace <your-bucket-name> with your actual bucket name.

Step 4: Confirm the setup:

gsutil cors get gs://<your-bucket-name>

You should see your configuration returned. You’re almost done.


5. The Critical FlutterFlow Toggle

To ensure your CORS rules take effect, you must disable FlutterFlow’s built-in CORS proxy:

  • Go to FlutterFlow → Settings → Deployment → Web Publishing
  • Set CORS Proxy to None
  • Re-publish your app

If left enabled, FlutterFlow’s proxy conflicts with your custom rules, and images stay broken. Once switched off, republishing your app fixes the issue permanently.


6. The Upgrade Was Still Worth It

Yes, the upgrade broke some things temporarily—but here’s why it’s still a win:

  • Custom code files are now first-class citizens. You can now add your own logic directly into FlutterFlow’s builder.
  • Web apps built with CanvasKit/WebGL load faster and deliver smoother experiences.
  • New rendering features like element-level shaders unlock creative possibilities previously unavailable.

In other words, this short-term headache comes with real long-term benefits.


7. Skip the Flaky Test & Run Buttons—Use Web Previewer Instead

FlutterFlow’s Test Mode and Run Mode are handy—but lately, they’ve become unreliable or frustratingly slow. To bypass the endless spinners and stalled loads, we recommend using the Web Previewer for daily testing instead:

Why Web Previewer?

  • Identical rendering to your live app (CanvasKit/WebGL).
  • No frustrating 30-minute limit or endless build wait.
  • Easily sharable link for team collaboration.

How to Use Web Previewer:

  • Click the dropdown next to the lightning bolt icon (top-right).
  • Select Run ▶︎ or use shortcut (Cmd/Ctrl + E).
  • Wait briefly for the initial build (2-4 minutes), then enjoy instant reloads thanks to caching.

FlutterFlow confirms Web Previewer is functionally identical to production, making it ideal for realistic testing.

Rule of thumb: If Test mode stalls more than 30 seconds, ditch it. Fire up Web Previewer instead and keep your momentum going.


8. TL;DR Summary for Quick Sharing

  • Issue: Images vanish after FlutterFlow’s latest upgrade due to missing Firebase Storage CORS headers.
  • Fix: Quickly configure cors.json via Cloud Shell, apply with gsutil, disable FlutterFlow’s built-in proxy, then republish.
  • Testing Recommendation: Skip flaky Test & Run modes—use Web Previewer for smoother, more reliable dev cycles.

Time to full resolution: Less than 3 minutes.


9. Need it done for you?

Busy or unsure? Email us at corsfix@infiniteup.dev and  we’ll quickly set up your bucket’s CORS rules and streamline your workflow with Web Previewer—no headache, no wait.


That’s how we navigated through FlutterFlow’s recent bumps without losing time or focus. Being resourceful in development isn’t just knowing the solution—it’s about swiftly applying it and moving forward.

Ready for your next resourceful win? Let’s go.

Illustration for the InfiniteUp article “CORS Crash-Landing? Here’s How We Flew Straight Through FlutterFlow’s Latest Upgrade” Illustration for the InfiniteUp article “CORS Crash-Landing? Here’s How We Flew Straight Through FlutterFlow’s Latest Upgrade” Illustration for the InfiniteUp article “CORS Crash-Landing? Here’s How We Flew Straight Through FlutterFlow’s Latest Upgrade”