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
@salah010,
It seems you’re encountering Authorization token (issue) when integrating Aspose.Cells GridJs Spreadsheet into your web application. GridJs makes direct client-side requests (e.g., img.src
, fetch
, or XMLHttpRequest
) for internal resources like images, which may bypass the ability to attach custom headers such as Authorization: Bearer <token>
. We will check if you could implement server-side proxy endpoints that could handle these internal requests. While GridJs might not natively support setting custom headers for internal requests, you may configure the base URL for image fetching. We will evaluate other options and may get back to you with details.
@salah010
We’ll add a new option token to load options:
We’ll add refreshToken method to support refreshing the token
xs.refreshToken(token)
to support set authorization token in request headers.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSGRIDJS-1620
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Also, we currently have a valid Aspose.Total license for our project.
Can you please let us know if this qualifies us for any priority support or if we need a separate paid support subscription to get advanced technical help (especially for GridJs-spreadsheet customization like this)?
Looking forward to your response.
Thanks again!
@salah010
Thank you for your feedback. When you have a valid license to use Aspose products normally, the saved file does not have an evaluation page or evaluation information. And it is not limited by the evaluation version. However, the created ticket still provides normal support. If you need to upgrade support for the ticket, you need to purchase priority services.
In normal support here, we deal with issues on a first come, first served basis. We believe this is the fairest and most appropriate way to meet the needs of our customers.
Please check our paid support option where issues are prioritized and posses highest priority if your issue is a real blocker.
@salah010
If you have any additional customization requirements, feel free to bring them up. We will analyze/investigate one by one . Subsequently, we will incorporate them into our product version cycles based on the development progress. If your requirements have a more urgent time constraint, you may opt to purchase our priority service. In that case, we will fulfill your needs according to the level of priority assigned.
for the above ticket:
CELLSGRIDJS-1620
We 've planed to support it in v25.5 version which is expected to be published next month.
We also noticed that the “search functionality” (with a search icon) is built into the GridJs plugin UI. However, we want to “trigger and control the search programmatically” from our Angular application — for example, from a custom input field or button “outside” the GridJs-spreadsheet interface.
Could you please provide:
- The public method (if available) to “trigger a search” in the loaded spreadsheet
- How to programmatically go to the “next” or “previous” match
- Any examples or usage patterns for integrating this with a custom UI
This would help us better integrate the spreadsheet experience into our existing UI.
Thanks once again!
@salah010
For a UI operation ,search feature is yet not designed as open APIs,however we can encapsulated it and provide as open APIs.
@salah010
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSGRIDJS-1622
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.