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

配置了代理还是提示跨域 #506

Open
R-1018 opened this issue May 12, 2023 · 8 comments
Open

配置了代理还是提示跨域 #506

R-1018 opened this issue May 12, 2023 · 8 comments
Assignees

Comments

@R-1018
Copy link

R-1018 commented May 12, 2023

tdesign-vue-next-starter 版本

最新

重现链接

No response

重现步骤

server: {
port: 5722,
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://ote.tpddns.cn:9999/byd',
changeOrigin: true,
rewrite: (path) => path.replace(/^/api/, ''),
},
},
},

翻了别的issues没看到proxy文件 是干掉了还是放别的地方去了

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link

👋 @R-1018,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link

♥️ 有劳 @PengYYYYY 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @R-1018

@timi137137
Copy link
Collaborator

timi137137 commented May 12, 2023 via email

@R-1018
Copy link
Author

R-1018 commented May 12, 2023

大哥改了提一声 感谢

@timi137137
Copy link
Collaborator

timi137137 commented May 12, 2023 via email

@R-1018
Copy link
Author

R-1018 commented May 12, 2023

帅哥 大概啥时候改文档

@wangyang0210
Copy link

我遇到的类似的问题,不过我看了下axios的封装,把携带cookie改为false;
// 携带Cookie
withCredentials: false,

@Yioky
Copy link

Yioky commented Aug 7, 2023

把axios配置里面的withCredentials:true改成false就行

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

5 participants