Angular Report Viewer error Exporting report with Authorization option

1 Answer 27 Views
Report Viewer - Angular
Programador
Top achievements
Rank 1
Programador asked on 12 Dec 2024, 09:11 PM

I have the Angular Report Viewer configurated with the Authorization Token option, 

<ng-container>
  <tr-viewer
    [containerStyle]="viewerContainerStyle"
    [serviceUrl]="serviceUrl"
    [authenticationToken]="authenticationToken"
    [reportSource]="reportSource"
    [viewMode]="'INTERACTIVE'"
    [scaleMode]="'SPECIFIC'"
    [scale]="1.0"
    [parametersAreaVisible]="true">
  </tr-viewer>
</ng-container>

 

When I preview the report, it works fine, but when I export the report, the page is redirected to https://.../api/reports/clients/29647efbe45/instances/18eaf5b1936/documents/b86a87758c11f7b9cd832a?response-content-disposition=attachment and in this redirection is not including the authorization header

 

Thanks a lot, Ariel

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Dec 2024, 03:16 PM

Hello Ariel,

Thank you for the screenshot and the additional information about the scenario!

Please have a look at the Unauthorized request '/api/reports/clients/.../documents/{documentId}' - Telerik Reporting KB article dedicated to this case where you may find information on why the Get Document request is not authorized and what approaches you may use to authorize it if you wish.

Let me know if I can assist with anything else.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Report Viewer - Angular
Asked by
Programador
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or