I need to pass the header Authorization
which is located in localStorage
with the key of iflix-user-token
, here is my code:
getFilmes: function () {
this.$http.get(Api.url + '/filme').then(
response => {
this.filmes = response.body
}
)
}
I'm using vue-resource
.