【发布时间】:2016-07-27 03:54:51
【问题描述】:
我正在尝试使用 Telerik Reporting MVC,但是当我运行此代码时
$(window).load(function () {
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "http://127.0.0.1:80/api/reports/",
templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate.html',
reportSource: {
report: "Vehicles.trdx",
//parameters: {
// ReportYear: "2003"
//}
},
viewMode: "ViewModes.INTERACTIVE",
scaleMode: "ScaleModes.SPECIFIC",
scale: "1.0"
});
});
我总是收到一条消息说:
请求的资源上不存在“Access-Control-Allow-Origin”标头。因此,Origin 'http://localhost:63600' 不允许访问。响应的 HTTP 状态代码为 500。
有人可以帮忙吗?
【问题讨论】: