Skip to content

argument for disable browser CORS policy #862

@amreniouinnovent

Description

@amreniouinnovent

I wonder if we could get an argument for disabling CORS Policy for debugging purposes until the backend developer whitelisted the domain and the port?

When I started to test my Android app if it will work on Flutter web or not I got the CORS issue.
I think it would be nice for first-time developers trying the mobile code to work on the web so maybe disable CORS would help to investigate the web-behavior.

{
	"name": "Flutter",
	"request": "launch",
	"type": "dart",
	"args": ["--no-cors", "true"]
}

My proposal rejected in Flutter but I hope it to get accepted here
flutter/flutter#46904

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions