Access is denied with IE and the datasource

1 posts, 0 answers
  1. Dave
    Dave avatar
    25 posts
    Member since:
    Feb 2010

    Posted 06 Nov 2012 Link to this post

    Attempting to use the Kendo DataSource object to call a WebAPI controller in another project. This is a cross-domain call. I am able to get this to work when using $.ajax directly but it get a "access is denied" error when using the DataSource. Here's the setup: = true;
    function sendRequestKendo(url) {
        ds = new{
            transport: {
                read: {
                    url: url,
                    type: "GET"
            change: onDataChanged,
            error: function(response) {
    function onDataChanged() {

    I have the following in the web.config of the API project to allow cross-domain calls:

        <add name="Access-Control-Allow-Origin" value="" />
        <add name="Access-Control-Allow-Headers" value="Content-Type" />

    The error handler is called and the response.errorThrown is "Access is denied". I can get around this by changing the security setting in IE Internet Options / Security / Internet Zone / Custom Level / Miscellaneous / Allow data sources across domains. However, this will NOT be allowed in production. It works okay in Chrome and Firefox but not IE9.  Again, if I do a straight ajax call it works:

        type: "GET",
        contentType: "application/json; charset=utf-8",
        dataType: "json"
        url: url,
        success: function() {
        error: function(response, status, err) {

    Any ideas?

Back to Top