-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
CORS errors on Flutter web #972
Comments
You can change the |
I'm still debugging this issue for my app so I'm not 100% sure on the specifics, but for what it's worth that fix did not work for me, and it appears the enum is a package other than this one I directly depend on. |
I'm currently not able to check it, but I recall I tried to go for other method but couldn't use the enum |
I solved my problem by using the HTML renderer, it appears the default may have changed in some Flutter version upgrade. It would also appear like this is deprecated by Flutter, so I'm not sure I'd advise this solution for others if it can be avoided. Further, I'm accessing an S3 bucket which I do not control, I believe I could solve this is I controlled the CORS configuration and allowed all hosts. |
Even with allow all hosts, images fail to load.
I wonder if it's because Wasm requires stricter headers. For example, deploying Wasm requires the server to serve these headers.
Wasm might require all files to be returned with
|
I encountered the following error: Adding this helped resolve the issue: However, I am still facing another issue, this is my cors
The images load fine on mobile, but I am encountering a 429 (Too Many Requests) error on the web. |
I have the same problem. Have you found a solution? |
For me changing the method worked. I did have to add the |
I've noticed that in my case only PNG images fails to load properly |
Did you try what you suggested ? |
Are you using firebase ?
15 Kas 2024 Cum 13:57 tarihinde cedvdb ***@***.***> şunu
yazdı:
… @rayliverified <https://github.com/rayliverified>
Did you try what you suggested ?
—
Reply to this email directly, view it on GitHub
<#972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUTSNQ56BB46FPBBISYP3U32AXHR5AVCNFSM6AAAAABOQBGJ46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZYGU2TQMBZGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
I have the same issue. Does anyone have a better way to fix this? And I found that the header is incorrect. |
Hey everyone, a current workaround is to switch to the beta / master channel and switch to Wasm single-threaded. |
🐛 Bug Report
This bug happened to me after a while of using the package so it might not be easy to reproduce.
I am unable to run my project due to CORS policies. This does not happen using Flutter's Image.network. I am fetching data from my Contentful CMS backend.
Expected behavior
Flutter web project run flawlesly
Reproduction steps
Run a Flutter Web app and try to load images from Contentful CMS backend.
Configuration
Version: 3.4.1
Platform:
The text was updated successfully, but these errors were encountered: