problem description
vue uses axios to access the backend:
this.$axios.get(
"/api/v2/server/singleServer/",
{params:
{userid:that.$store.state.userData.id,token:that.$cookies.get("token"),serverid:that.$route.params.serverid}
}
,
{headers:{"content-type":"application/json"}},
).then(function(ret){
console.log(ret.data)
that.loading = false
that.serverData = ret.data
})
I wrote cookie in url, and I can get it. Now, what if you put the cookie in the header and get it through the back end?