I’m using the datagrid component with the url property set to an API endpoint to get my data, which works fine. I want to add some authentication to the API via the X-API-Key header. How can I send this header to authenticate with the API endpoint?
You can try using a loading function or a loading proxy. Both make a webix.ajax GET call to fetch the data Code Snippet, and you can pass the needed headers with the request:
Thanks. I added this but I’m not getting any data in the grid, only “1620955250637” in the first column. No errors in developer tools. Am I missing something? I can run it in postman and it returns the data.