I have a problem with my fetch
request. For some reasons, it isn't sending my cookies when I'm making request to my server. For example, I'm using such fetch request
fetch('/api/islogged', {
method: 'GET',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Cache': 'no-cache'
},
credentials: 'include',
})
and even if I'm already logged in, it still says that I'm not. But, if I go directly to www.localhost.com/api/islogged
in my browser, it returns correct answer