I have a Flutter web app that is using Supabase and the Supabase authentication service.
I have a problem with the "reset password" feature. Something like this:
1). The user initiates the 'reset password' from the Flutter web app UI
2). The user receives an email with the 'reset password' link
3). When the user clicks on the link in the email, a browser page is opened, but I'm getting the following error inside the browser dev console
flutter_bootstrap.js:3 Exception while loading service worker: SecurityError: Failed to register a ServiceWorker for scope ('/') with script ('.js?v=3881442461'): The script has an unsupported MIME type ('text/html').
Any ideas what's going wrong?
I have a Flutter web app that is using Supabase and the Supabase authentication service.
I have a problem with the "reset password" feature. Something like this:
1). The user initiates the 'reset password' from the Flutter web app UI
2). The user receives an email with the 'reset password' link
3). When the user clicks on the link in the email, a browser page is opened, but I'm getting the following error inside the browser dev console
flutter_bootstrap.js:3 Exception while loading service worker: SecurityError: Failed to register a ServiceWorker for scope ('https://eisgd/update-password/') with script ('https://eisgd/update-password/flutter_service_worker.js?v=3881442461'): The script has an unsupported MIME type ('text/html').
Any ideas what's going wrong?
Share Improve this question asked Mar 16 at 14:30 user2868835user2868835 1,6605 gold badges24 silver badges53 bronze badges1 Answer
Reset to default 0I solved this by adding the following to the main command...
usePathUrlStrategy();