0👍
✅
fetch
does not send cookies by default.
You need to include credentials:
fetch("/search?q=" + this.q, {
credentials: 'same-origin'
})
Source:stackexchange.com