摘要: 1.首先webapi要设置允许跨域 2.API控制器增加同源策略标注 3.存储信息到cookie,注意设置Domain 3.webapi获取cookie方法 4.前端ajax访问,注意设置withCredentials 阅读全文