fetch 在跨域的情况下,不带cookie; 解决办法: 带上参数{credentials: ‘include’}后才可以在请求里面带上cookie fetch ( 'doAct.action' , { credentials : 'include' }). then ( function ( res ) { // ... })…
fetch 在跨域的情况下,不带cookie; 解决办法: 带上参数{credentials: ‘include’}后才可以在请求里面带上cookie fetch ( 'doAct.action' , { credentials : 'include' }). then ( function ( res ) { // ... })…
讨论
登录后参与讨论
还没有评论,来说第一句吧。