[Vuejs]-Vue and rails: Share cookie

0👍

fetch does not send cookies by default.

You need to include credentials:

fetch("/search?q=" + this.q, {
  credentials: 'same-origin'
})

Leave a comment