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

Error: DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library. #55

Open
Lillls opened this issue Apr 15, 2024 · 2 comments

Comments

@Lillls
Copy link

Lillls commented Apr 15, 2024

调用提示DIO错误,请问如何解决

@huhx
Copy link
Owner

huhx commented Apr 16, 2024

可以提供详细的错误吗?有可以复现的小例子更好

@Lillls
Copy link
Author

Lillls commented Apr 16, 2024

我用的是 flutter web 好像是跨域的问题
Access to XMLHttpRequest at 'https://xiaoyu-ipic.oss-cn-beijing.aliyuncs.com/text.png' from origin 'http://localhost:57016' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

可以提供详细的错误吗?有可以复现的小例子更好

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