jquery ajax call not sending cookie

前端 未结 2 560
太阳男子
太阳男子 2020-12-10 09:11

I have a jQuery ajax call across a subdomain that works correctly except it\'s not sending the cookie. Is there any way to accomplish this?

2条回答
  •  情书的邮戳
    2020-12-10 09:38

    Shouldn't this work if you use a CORS capable browser and set the withCredentials attribute?

    See HTTP Cookies and Ajax requests over HTTPS

提交回复
热议问题