$get is just a helper, you can use get native
async created() {
const response = await this.$axios.get('posts')
this.posts = response.data
}
Thanx!
this.headers = response.headers
it worked,
in my case(cross domain), not all needed headers were in response
but this is server side problem, i fixed it by adding this code on backend
"Access-Control-Expose-Headers" = ['X-Pagination-Current-Page','X-Pagination-Total-Count']
@anteriovieira I can't get headers of response in the client-side , I can get headers only on server-side do you have any idea where I can config to display them and on client-side response as well ????
Most helpful comment
$getis just a helper, you can usegetnative