v1.5.0
flutter_cors
一个用于禁用和重新启用 Flutter 的 Chrome 实例的 CORS 检查的脚本
197喜欢 2300近 30 天下载160Pub 分数
macOSWindowsLinux
一个用于禁用和重新启用 Flutter 的 Chrome 实例的 CORS 检查的脚本
以下为英文项目原文快照,最新内容请访问 GitHub。
A script to disable and re-enable CORS checks for Flutter's Chrome instances
This script only disables CORS checks for local testing, and will not help with CORS issues in production. Do not ask for help with production CORS issues as that is outside the scope of this project.
$ dart pub global activate flutter_cors
-e, --enable Enable CORS checks
-d, --disable Disable CORS checks
-b, --disable-banner Disable the warning banner in Chrome
-p, --flutter-path=<path> Flutter root path (determined automatically if not specified)
$ fluttercors --disable
$ fluttercors --enable
$ fluttercors -db -p /path/to/flutter