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

Taro.uploadFile 通配符跨域问题 #12519

Closed
jay-sue opened this issue Sep 19, 2022 · 2 comments
Closed

Taro.uploadFile 通配符跨域问题 #12519

jay-sue opened this issue Sep 19, 2022 · 2 comments

Comments

@jay-sue
Copy link

jay-sue commented Sep 19, 2022

xhr.withCredentials = true

由于h5 API,upLoadFile,写死携带Cookies(xhr.withCredentials = true)了。通配符跨域场景下,浏览器不允许携带Cookie,导致上传失败。希望后续更新修复这个问题,将withCredentials作为upLoadFile可选参数

@taro-bot2
Copy link

taro-bot2 bot commented Sep 19, 2022

您的 Issue 没有按照规范从 Taro Issue Helper 创建,因此会被直接关闭。

维护开源项目是一项非常辛苦的工作,还请多多包涵。
了解为什么这么严格?

1 similar comment
@taro-bot2
Copy link

taro-bot2 bot commented Sep 19, 2022

您的 Issue 没有按照规范从 Taro Issue Helper 创建,因此会被直接关闭。

维护开源项目是一项非常辛苦的工作,还请多多包涵。
了解为什么这么严格?

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

1 participant