Hi,
I am working in .NET (MVC5).
My problem is with cross-origin resource sharing. When I am trying to get telerikReportViewerTemplate-html in Chrome (IE and Edge are working OK) I am getting this error:
"XMLHttpRequest cannot load http://localhost:56878/api/reports/resources/templates/telerikReportViewerTemplate-html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:58343' is therefore not allowed access."
This is my code in JS calling report viewer:
$('#reportViewer').telerik_ReportViewer({
"serviceUrl": "http://localhost:56878/api/reports/",
"scale": 1.0,
"persistSession": false,
"parametersAreaVisible": true,
"documentMapVisible": true,
"viewMode": "INTERACTIVE",
"scaleMode": "SPECIFIC",
"printMode": "AUTO_SELECT",
"renderingBegin": "",
"renderingEnd": "",
"printBegin": "",
"printEnd": "",
"exportBegin": "",
"exportEnd": "",
"updateUi": "",
"error": "",
"pageReady": "",
"ready": "",
"parameterEditors": []
});
How can I put a permissions in request header?