Skip to content

uploadFile 跨域无法携带cookie #5376

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

Closed
wkpGitHub opened this issue Apr 1, 2025 · 2 comments
Closed

uploadFile 跨域无法携带cookie #5376

wkpGitHub opened this issue Apr 1, 2025 · 2 comments
Assignees

Comments

@wkpGitHub
Copy link

发行方式

H5

具体平台

Chrome 134.0.6998.118(正式版本) (64 位)

开发环境

Windows

项目创建方式

HBuilderX

依赖版本

4.57

问题描述

正常发起一个uni.uploadFile请求
浏览器控制台查看请求头没有cookie

重现步骤

正常发起一个uni.uploadFile请求
浏览器控制台查看请求头没有cookie

期望行为

No response

实际行为

No response

截图或录屏

No response

@GRCmade
Copy link
Collaborator

GRCmade commented Apr 1, 2025

hello , 你的后端写法确定没问题吗 ? 除去 cookie 之后,跨域能请求吗?

@GRCmade GRCmade self-assigned this Apr 1, 2025
@GRCmade
Copy link
Collaborator

GRCmade commented Apr 15, 2025

长时间未回复,关闭 issue,如果还存在这个问题,可以重新打开

@GRCmade GRCmade closed this as completed Apr 15, 2025
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