pdfviewer does not inject ajaxRequestSettings into unload request

hi,
I need to inject authorization token into pdfviewer requests to my Asp.Net Core Api. I did it with ajaxRequestSettings property in pdfviewer.
it works as expected in Load and RenderPdfPages requests.
 but in Unload it does not inject token and my api returns unauthorized error!
 is it a bug or I missing something?

my pdfviewer version is:
"@syncfusion/ej2-angular-pdfviewer":"^18.1.57"

thanks



3 Replies 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team October 12, 2020 09:37 AM UTC

Hi mkzm, 

Thank you for Contacting Syncfusion support. 

We are unable to reproduce the reported issue with our latest version 18.3.0.35. We have shared the sample in which we have tried in the below link,  


Can you please try with our latest version and revert us with more details if you are still facing the issue.  
  

Regards, 
Akshaya 


Marked as answer

MK mkzm October 14, 2020 05:53 AM UTC

hi Akshaya,
thanks for your response. I use pdfviewer in matDialog. when I close matDialog, pdfviewer send unload request automatically. my problem was there. based on your suggestion I updated syncfusion and angular packages and problem is gone.


MS Mohan Selvaraj Syncfusion Team October 15, 2020 09:23 AM UTC

Hi mkzm,  
   
Thanks for your update.  
   
We are glad that the reported issue is resolved on your end. Kindly revert if there is any concern.  
   
   
Regards,  
Mohan S 

Loader.
Up arrow icon