rayman1104 / ra-data-nestjsx-crud

Data provider which integrates React Admin with NestJS CRUD library
MIT License
100 stars 27 forks source link

Headers in Data Provider #21

Closed koaladlt closed 2 years ago

koaladlt commented 3 years ago

Hey there! First of all, thank you for maintaining this library.

I was trying to add an "Authorization Bearer" header to the Data Provider, but I'm not seeing in the docs a way to do it.

Thanks in advance!

rayman1104 commented 2 years ago

Hi! You should create your own httpClient and provide it as an argument to this data provider.

See the docs: https://marmelab.com/react-admin/Authentication.html#sending-credentials-to-the-api

koaladlt commented 2 years ago

@rayman1104 Thanks a lot!