Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CORS on live website #4

Closed
Scienticious opened this issue Mar 2, 2022 · 1 comment
Closed

Disable CORS on live website #4

Scienticious opened this issue Mar 2, 2022 · 1 comment

Comments

@Scienticious
Copy link

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?

@Rexios80
Copy link
Owner

Rexios80 commented Mar 2, 2022

You can't disable CORS in flutter. CORS is a browser feature. This script is only to disable CORS for local testing. If you have issues with CORS in production you will have to fix those issues some other way. Either by properly setting up your API or using a proxy server.

@Rexios80 Rexios80 closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants