-
Notifications
You must be signed in to change notification settings - Fork 202
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
Comments
👋 @R-1018,感谢给 TDesign 提出了 issue。 |
|
我还没改文档…非常抱歉!------------------------------------------------------------------
***@***.***>
日 期:2023年05月12日 17:37:53
***@***.***>
***@***.***>
主 题:[Tencent/tdesign-vue-next-starter] 配置了代理还是提示跨域 (Issue #506)
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
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
大哥改了提一声 感谢 |
好的!------------------------------------------------------------------
***@***.***>
日 期:2023年05月12日 17:49:11
***@***.***>
***@***.***>; ***@***.***>
主 题:Re: [Tencent/tdesign-vue-next-starter] 配置了代理还是提示跨域 (Issue #506)
大哥改了提一声 感谢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
帅哥 大概啥时候改文档 |
我遇到的类似的问题,不过我看了下axios的封装,把携带cookie改为false; |
把axios配置里面的withCredentials:true改成false就行 |
稍后抽空对文档进行更新,目前在重构主分支代码。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: