跨域:跨域名(IP)
跨域的目的是共享Cookie。
session操作http协议,每次既要request,也要response,cookie在创建的时候会产生一个字符串然后随着response返回。

全网站的各个页面都会带着登陆的时候的cookie

不同网站cookie不共享,每一个后端都只能获取当前登录的cookie。
跨域首先 就是不同域名(二级域名也算跨域),http和https也算跨域
不同浏览器里面路径不一样也可能引起跨域

跨域:跨域名(IP)
跨域的目的是共享Cookie。
session操作http协议,每次既要request,也要response,cookie在创建的时候会产生一个字符串然后随着response返回。
全网站的各个页面都会带着登陆的时候的cookie
不同网站cookie不共享,每一个后端都只能获取当前登录的cookie。
跨域首先 就是不同域名(二级域名也算跨域),http和https也算跨域
不同浏览器里面路径不一样也可能引起跨域