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

Overview

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

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
You might also like...

Run Pubspec Script (RPS)

 Run Pubspec Script (RPS)

Run Pubspec Script (RPS) Define and use scripts from your pubspec.yaml file. Get

Nov 27, 2022

A package script for allowing coverage test tool to see all Dart files

full_coverage Coverage tools like codecov only see the files that were actually triggered by tests. This means that a coverage of 100% can easily be a

Mar 18, 2022

Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love.

tribally Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love. Getting Started This proje

Dec 28, 2021

A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker. This sample code handles HTTP GET requests to / and /echo/message Requests

Jan 26, 2022

A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker. Project Structure Running the sample Running with the Dart SDK You can run t

Jan 12, 2022

Buildpack dart - A server app built using Shelf, configured to enable running with Docker

Hosted at https://dart-buildpack-demo-ruyjilv5wq-uc.a.run.app/ Buildpack defined

Dec 15, 2022

A server app built using Shelf, configured to enable running with Docker.

A server app built using Shelf, configured to enable running with Docker.

May 23, 2022

Awesome Notifications add-on plugin to enable push notifications through Firebase Cloud Messaging with all awesome notifications features.

Awesome Notifications add-on plugin to enable push notifications through Firebase Cloud Messaging with all awesome notifications features.

Awesome Notifications FCM Awesome Notifications add-on to send push notifications using FCM (Firebase Cloud Messaging), with all awesome notifications

Jan 4, 2023

This project has the vision to assist the officials for Forest trees census and tagging each tree with proper location (latitude and longitude), tree type, and other arguments. and further had the plan to apply data analysis over-collected data.

🌳 Trees 🌳 🔖 Tagger 🔖 App & Analysis Software The vision of this project is to assist forest officials for tree census by tagging each tree with pr

Sep 29, 2022
Comments
  • Better integrate with fvm

    Better integrate with fvm

    It would be helpful if I could change the path to the Flutter version that I want to modify. I'm using fvm and there are always multiple versions installed on my system side by side.

    An easy solution is to accept the path to the Flutter installation as command line argument like so:

    fluttercors enable ~/fvm/versions/2.8.1

    (and if empty just default to wich flutter as done currently)

    opened by ToniTornado 2
  • Disable CORS on live website

    Disable CORS on live website

    Hello, I want to disable CORS on my released flutter build. CORS are not disabled when I release my flutter web build and deploy it on web hosting.

    Any Suggession?

    opened by Scienticious 1
  • Use args package

    Use args package

    Use the args package to:

    • Implement https://github.com/Rexios80/flutter_cors/issues/2
    • Implement https://github.com/Rexios80/flutter_cors/issues/1
    • Create a useful help command
    opened by Rexios80 0
Owner
Rexios
I do things sometimes
Rexios
A Flutter widget that checks and displays the version status of application and you can easily guide user to update your app

A most easily usable Flutter widget about application version check! 1. About 1.

Kato Shinya 1 Dec 16, 2021
Dart package to retrieve Transmission data from remote instance

transmission Dart package to talk to a Transmission torrent instance, for a flutter package including UI widget please check transmission Getting Star

L.I.S.A. 6 Nov 6, 2022
Build context - Access most used properties in your BuildContext instance.

Languages: English | Brazilian Portuguse BuildContext Access most used properties in your BuildContext instance. This package relies on Dart's extensi

Pedro Massango 132 Dec 11, 2022
A Flutter plugin to retrieve the Firebase App Instance ID

firebase_instance_id A Flutter plugin to retrieve the Firebase App Instance ID# device_unlock How does it work App Instance Id is an unique identifier

Cíngulo 1 Jan 21, 2022
Flutter code extension that provides MediaQuery sizing info directly on the BuildContext instance

Flutter code extension that provides MediaQuery sizing info directly on the BuildContext instance. Also adds some helper methods for sizing and layout.

gskinner team 87 Dec 6, 2022
A Full-Featured Mobile Browser App (such as the Google Chrome mobile browser) created using Flutter and the features offered by the flutter_inappwebview plugin.

Flutter Browser App A Full-Featured Mobile Browser App (such as the Google Chrome mobile browser) created using Flutter and the features offered by th

Lorenzo Pichilli 270 Jan 2, 2023
A pure Dart utility library that checks for an internet connection by opening a socket to a list of specified addresses, each with individual port and timeout. Defaults are provided for convenience.

data_connection_checker A pure Dart utility library that checks for an internet connection by opening a socket to a list of specified addresses, each

Kristiyan Mitev 103 Nov 29, 2022
Supports hls on chrome and other browsers.

video_player_web_hls Supports hls on chrome and other browsers. Usage ... dependencies: ... video_player_web_hls: ^0.1.1 video_player: ^0.10.10

Balvinder Singh Gambhir 36 Nov 28, 2022
Build different UIs for Android, iOS, Web, Desktop, Wear, TV etc without the if/else checks in your widgets.

platform_widget_mixin Plugin to decouple widgets based on various platform properties. Features Build different UIs for Android, iOS, Web, Desktop, We

Rahul Kumar 6 Nov 17, 2022
Flutterbodydetection - A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmentation APIs for both static images and live camera stream.

body_detection A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmen

null 18 Dec 5, 2022