Passing data with a link - does not work in Chrome/Edge (MIME Type Error) but in Firefox

Troubleshooting
Resolved

Hi,

I am passing data to a route as described here: https://docs.flutterflow.io/advanced-functionality/deep-and-dynamic-linking#passing-data-with-a-link

It works fine in all browsers when I deploy with FlutterFlow Build-in Hosting.

However, if I download the code -> flutter build web -> deploy to cloudflares pages OR Firebase Hosting (Yes I tried both) I get to the following scenario:

  • Almost all links to my app work fine (e.g. myapp.com and myapp.com/login) and the app runs smooth

  • only my (few) routes that require a parameter to be provided with the link (e.g. myapp.com/profile/241745 using the method linked above) DO NOT WORK in Chrome and Edge, BUT work in Firefox. Errors in Chrome and Edge differ a bit, in Chrome the error in the console is:

Refused to execute script from 'https://myapp/profile/main.dart.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

As this works on flutterflow build-in hosting and also in firefox when I host elsewhere I suspect this is not an issue with my implementation in flutterflow.

Did simeone come across a similar problem?

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
4
3 replies