is there a way to pass authentication header when using grid.exportToPDF() if I host the export package on my own server?
There is no any API for such task unfortunately
The method is using webix.send to send the data to the server side, so you can override this method with any custom logic.