Skip to content

Conversation

shepherdwind
Copy link
Contributor

@shepherdwind shepherdwind mentioned this pull request Jan 13, 2016
shepherdwind added a commit that referenced this pull request Jan 13, 2016
feat: change xhr.withCredentials as prop config, default false
@shepherdwind shepherdwind merged commit bf8e05a into master Jan 13, 2016
@shepherdwind shepherdwind deleted the send-cookie-option branch January 13, 2016 13:06
@baizn
Copy link

baizn commented Mar 17, 2016

按源码中说明,设置withCredentials: true后request中还是没有cookie信息,还需要另外是设置什么吗?
image

@shepherdwind
Copy link
Contributor Author

是一个 prop 属性吧,我本地试下看看

@baizn
Copy link

baizn commented Mar 17, 2016

是设置的prop属性,用的是Dragger组件, <Dragger {...props}>......</Dragger> ,withCredentials: true是设置在props对象中的。

@shepherdwind
Copy link
Contributor Author

@baizn 我断点进去看了,upload 肯定是 ok 的,Dragger 是哪个?antd 的组件么?

@shepherdwind
Copy link
Contributor Author

antd 里面的 upload 没有把所有参数传递,我去提一个 mr 吧

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

Successfully merging this pull request may close these issues.

Upload上传组件跨域失败,源于rc-request设置问题

3 participants