最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter-Supabase auth - error with reset password - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I solved this by adding the following to the main command...

usePathUrlStrategy();
发布评论

评论列表(0)

  1. 暂无评论