Kendo ui grid的数据源Url 在被identityServer保护的情况下的使用方法

new kendo.data.DataSource({
    transport: {
        read: {
            url: "http://someserver:8554/search",
            type: 'POST',
            beforeSend: function(req) {
                req.setRequestHeader('Authorization', auth);
            }
        }
    },
    change: function() {
        log(this.data());
    }
}).read();

猜你喜欢

转载自www.cnblogs.com/wjx-blog/p/11133910.html
今日推荐