会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Jspeng
Anything is cheap except the code.
博客园
首页
新随笔
联系
管理
订阅
2020年9月15日
前端跨域携带cookie问题
摘要: Access-Control-Allow-Origin为*的时候,前端设置withCredentials:true,将不能发送cookie到服务端。 此外,前端要发送cookie到服务端,还要 XMLHttpRequest 的 withCredentials 标志设置为 true,且 服务器端的响应
阅读全文
posted @ 2020-09-15 22:28 Jspeng
阅读(1441)
评论(0)
推荐(0)
编辑
公告