Posted 4 January 2021, 2:34 am ESTI deploy a activereport service on my IIS server, and I run the report named '1.rdlx' on ERP system, all is fine. But when export to PDF file, It download the file named '1.rdlx'. I checked the file yet, it is a PDF file actually. Can anybody give me some advise? Thanks.
Export with wrong file name extension on JSViewer
Posted by: michael.zhong on 4 January 2021, 2:34 am EST
Marked as Answer
Replied 4 January 2021, 2:47 pm ESTHello Michael,
This issue occurs because of restriction to access response headers when using Fetch API (which we use to download the exported file) over CORS. You can use the following CORS policy to avoid this issue:
Hope it helps.
Replied 4 January 2021, 4:00 pm ESTHi Mohit,
Got it and it's OK, thanks a lot.