{"action":"created","issue":{"url":"https://api.github.com/repos/mipengine/mip-extensions/issues/1079","repository_url":"https://api.github.com/repos/mipengine/mip-extensions","labels_url":"https://api.github.com/repos/mipengine/mip-extensions/issues/1079/labels{/name}","comments_url":"https://api.github.com/repos/mipengine/mip-extensions/issues/1079/comments","events_url":"https://api.github.com/repos/mipengine/mip-extensions/issues/1079/events","html_url":"https://github.com/mipengine/mip-extensions/issues/1079","id":307883110,"number":1079,"title":"关于mip-data 不支持跨域发送 cookie 的问题","user":{"login":"vivine","id":1614610,"avatar_url":"https://avatars2.githubusercontent.com/u/1614610?v=4","gravatar_id":"","url":"https://api.github.com/users/vivine","html_url":"https://github.com/vivine","followers_url":"https://api.github.com/users/vivine/followers","following_url":"https://api.github.com/users/vivine/following{/other_user}","gists_url":"https://api.github.com/users/vivine/gists{/gist_id}","starred_url":"https://api.github.com/users/vivine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivine/subscriptions","organizations_url":"https://api.github.com/users/vivine/orgs","repos_url":"https://api.github.com/users/vivine/repos","events_url":"https://api.github.com/users/vivine/events{/privacy}","received_events_url":"https://api.github.com/users/vivine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T02:46:58Z","updated_at":"2018-03-23T03:11:34Z","closed_at":null,"author_association":"NONE","body":"https://github.com/mipengine/mip-extensions/blob/983f8b2af227a5a6227a8d1fb4608f4c21b7fb53/src/mip-bind/mip-data.js#L75-L92\r\n\r\nmip-data 这个地方的跨域问题，服务端已经配置 cors 跨站访问，解决了数据能读到的问题。\r\n\r\n**重点是：mip-data 这个地方用的fetch，并没有支持跨域发送 cookie，我的场景是在服务端要获取cookie来做一些事情。**\r\n\r\n建议：在 mip-data 组件上加个属性，让用户来控制是否跨域发送 cookie。\r\n\r\n以上！\r\n"},"comment":{"url":"https://api.github.com/repos/mipengine/mip-extensions/issues/comments/375530282","html_url":"https://github.com/mipengine/mip-extensions/issues/1079#issuecomment-375530282","issue_url":"https://api.github.com/repos/mipengine/mip-extensions/issues/1079","id":375530282,"user":{"login":"wupengFEX","id":8186657,"avatar_url":"https://avatars2.githubusercontent.com/u/8186657?v=4","gravatar_id":"","url":"https://api.github.com/users/wupengFEX","html_url":"https://github.com/wupengFEX","followers_url":"https://api.github.com/users/wupengFEX/followers","following_url":"https://api.github.com/users/wupengFEX/following{/other_user}","gists_url":"https://api.github.com/users/wupengFEX/gists{/gist_id}","starred_url":"https://api.github.com/users/wupengFEX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wupengFEX/subscriptions","organizations_url":"https://api.github.com/users/wupengFEX/orgs","repos_url":"https://api.github.com/users/wupengFEX/repos","events_url":"https://api.github.com/users/wupengFEX/events{/privacy}","received_events_url":"https://api.github.com/users/wupengFEX/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T03:11:34Z","updated_at":"2018-03-23T03:11:34Z","author_association":"OWNER","body":"关联 #1076"}}
{"actor":{"display_login":"wupengFEX"}}