jsview自定义验证Header传入
本帖最后由 KearneyKang 于 2022-4-7 10:02 编辑<script type="text/javascript">
let viewer;
function loadViewer() {
viewer = GrapeCity.ActiveReports.JSViewer.create({
element: '#viewerContainer',
reportService: {
url: 'api/reporting',
onRequest: function (init) {
init.headers.Authorization = 'token';
}
}
});
viewer.openReport("JsonUrl.rdlx");
}
</script>
老铁真给力,奖励您1000金币:hjyzw:
页:
[1]