const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.open('POST', 'https://othersite.com/data');. 如此一來跨來源請求就會攜帶cookie ...
確定! 回上一頁