如何获取Cookie。我没有找到此问题的正确解决方案。我也尝试过credentials: 'same-origin|include'
。
fetch(
'http://obis.manas.edu.kg/index.php',{
method: 'POST',
credentials: 'same-origin',
body:{
frm_kullanici:'example_username',
frm_sifre:'example_userpassword'
}
})
.then(res => {
console.log(res);
})
.catch((error) => {
console.log('error')
})