jamesdordoy / laravel-vue-datatable

Vue.js Datatable made for Laravel
https://jamesdordoy.github.io/laravel-vue-datatable
MIT License
151 stars 52 forks source link

Pass token into the headers #97

Closed dibet closed 4 years ago

dibet commented 4 years ago

Hi, it is a fantastic plugin but i need to pass a bearer token into the headers and i dont see any way to do it. Can you help me?

jamesdordoy commented 4 years ago

Hi @dibet,

I have added a prop to the datatable so headers can be passed in however but there seems to be an bug with a duplicate request running at the moment returning a 204 success.

I'll look to fix this ASAP and then release for you.

Regards,

James

dibet commented 4 years ago

Fantástico. Thanks

jamesdordoy commented 4 years ago

Hi @dibet,

You can now add request headers to the axios instance. This has been released under 0.5.14. See here if you are unsure how these are configured.

I have also updated the documentation accordingly.

Thanks,

James