FLUTTER ECOSYSTEM

Rexios80/flutter_cors

一个用于禁用和重新启用 Flutter 的 Chrome 实例的 CORS 检查的脚本

flutter_cors 项目封面
Stars
37
Forks
6
最近推送(UTC)
2023年10月26日
项目状态
未归档
Rexios GitHub avatar
GITHUB User

Rexios ↗

I do things sometimes

@IO-Design-Team
语言Dart

此仓库发布的插件

使用的依赖

依赖清单 5 项
  • args^2.3.0
  • pub_update_checker^1.2.0
  • ansicolor^2.0.1
  • test开发依赖^1.24.8
  • rexios_lints开发依赖^6.0.1

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

A script to disable and re-enable CORS checks for Flutter's Chrome instances

Note

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.

Use as an executable

Installation
$ dart pub global activate flutter_cors
Usage
-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