Hi Aspose Team,
We are using Aspose.Cells GridJs Spreadsheet in our web application and it’s working well for displaying Excel files.
However, we are facing an issue with internal API calls, specifically when loading images via xs.setImageInfo(imageGetActionUrl, imageAddByUploadActionUrl, imageAddByUrlActionUrl, imageCopyActionUrl, zindex, loadingGif)
or any other internal request made by GridJs. Our API is protected by a middleware that requires an Authorization
token in the request headers.
Since GridJs seems to make direct client-side calls (e.g., setting img.src
or issuing fetch/XHR), we cannot attach custom headers like Authorization: Bearer <token>
.
Is there a built-in or recommended way in GridJs to set custom headers (e.g., Authorization
token) for internal resource requests (such as images or data fetching)?
Alternatively, is there a way to intercept these requests or override the fetch logic so we can manually add the headers?
Any guidance or workaround (such as server-side proxying) that fits into the GridJs architecture would also be appreciated.
Thanks in advance for your help!
Best regards,
Mohamed Salahudeen