【发布时间】:2020-06-09 18:45:06
【问题描述】:
我尝试使用 firebase auth 和 firebase firestore 构建一个颤振网页。在部署到 Firebase 托管后,我遇到了一个问题,即我无法登录“被 CORS 请求阻止”。我在线阅读并在flutter channel master上进行了flutter升级,之后即使运行“flutter run -d chrome”也会给我一个不支持的错误。我听说这可能是由 dart:io 导入引起的,但我没有更改之前的任何 pubspec.yaml 依赖项
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
firebase_auth:
firebase_auth_web:
cloud_firestore: ^0.13.2
csv: ^4.0.3
path_provider: ^1.4.4
flutter_email_sender: ^2.2.0
intl: ^0.15.7
url_launcher: ^5.1.4
url_launcher_web: ^0.1.0
dev_dependencies:
flutter_test:
sdk: flutter
repo 在这里:https://github.com/lewlian/Attendy
【问题讨论】:
-
嗨@Sean!您能否添加您面临的错误?
-
查看How to Ask 来改进这个问题。
-
有一个open GitHub issue 与您的错误有关。你能检查一下是不是这样吗?
标签: flutter google-cloud-firestore firebase-authentication flutter-dependencies