如何从获取HTTP请求中获取Cookie?

时间:2020-01-29 18:00:04

标签: javascript reactjs react-native cookies fetch

如何获取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')
      })

0 个答案:

没有答案
相关问题