This is a migrated thread and some comments may be shown as answers.

HTML5 Reportviewer CORS SSL

1 Answer 238 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 01 Dec 2016, 08:16 PM

Hi,

I am currently trying to use the HTML 5 Reportviewer to connect to an IIS Hosted site using CORS. Both my website and the API site are using SSL/TLS. I was able to successfully connect and display a report on a non ssl test site. However with SSL enabled, I am receiving a mixed content error. after reviewing the error logs in developer tools I see that the Reportviewer is attempting to make two requests using http (http://myiissite/api/reports/clients and http://myiissite/api/reports/resources/styles/telerikReportViewer-css) and these requests are being blocked by the browser/jquery. Both of these sites have url rewrite rules that will force https.

 

I suppose my question is, is there some way to force the Reportviewer widget to make these requests over https? If not what can I do?

 

My configuration

    Django/Apache2 site that is using the html5 reportviewer - hosted on aws

    .NET/IIS site that hosts the Reporting API - hosted on a windows machine

 

    $('#kendoViewer').telerik_ReportViewer({
    serviceUrl: "https://myiissite/api/reports/",
    templateUrl: "/static/ReportViewer/templates/telerikReportViewerTemplate-FA.html",
    reportSource: { report: "myReport.trdp"}
    });

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 05 Dec 2016, 03:33 PM
Hello Justin,

Please check the HTML template you load through the viewer's templateUrl and ifthe modified HTML contains HTTP URLs. The rest of the request by the  HTML5 Viewer will be sent with append serviceUrl, which uses HTTPS.

In case of testing in Chrome, test Ctrl+F5 or clear the browser's cache.


In order to investigate further the problem, please open a support ticket and send us the project with the HTML5 Viewer to test it locally. Include also a SAZ file generated by Fiddler.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Justin
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or