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

3.4.2版本 uploadFile 未携带cookie #11357

Closed
Hicbik opened this issue Feb 25, 2022 · 2 comments
Closed

3.4.2版本 uploadFile 未携带cookie #11357

Hicbik opened this issue Feb 25, 2022 · 2 comments
Labels
E-easy Helper Wanted - Easy F-react Framework - React P-1 High, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@Hicbik
Copy link

Hicbik commented Feb 25, 2022

相关平台

H5

浏览器版本: 微信开发者工具
使用框架: React

复现步骤

uploadFile发送文件未携带cookie

期望结果

携带cookie

实际结果

未携带

环境信息

� Taro v3.4.2


  Taro CLI 3.4.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.6 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\shiyi\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD


补充信息

upload源代码 缺少 xhr.withCredentials = true;

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Feb 25, 2022
@github-actions
Copy link
Contributor

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@ZakaryCode ZakaryCode added E-easy Helper Wanted - Easy P-1 High, patch labels Feb 25, 2022
@taro-bot2 taro-bot2 bot modified the milestone: 3.4.3 Feb 25, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.3, 3.4.4 Mar 7, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.4, 3.4.5 Mar 28, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.5, 3.4.6 Apr 12, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.7, 3.4.8 Apr 24, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.8, 3.4.9 May 9, 2022
@ZakaryCode
Copy link
Contributor

该问题没有关联,请检查域名下是否存在 cookie

另外,xhr.withCredentials = true会在 v3.5+ 补上

ZakaryCode added a commit that referenced this issue May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Helper Wanted - Easy F-react Framework - React P-1 High, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants