Как получить куки из запроса http http? - PullRequest
0 голосов
/ 29 января 2020

Как я могу получить куки. Я не нашел правильного решения этой проблемы. Я тоже попробовал 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')
      })
...