facebook

domain whitelist

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #333554 Reply

    javedaziz
    Member

    Hi,
    Is there a way to define domain white list so we can do ajax calls to that domain.

    similar to config.xml in build.phonegap.com
    <access origin=”http://www.mydomain.com&#8221; />

    #333577

    Hi javedaziz,

    I’ve escalated this question to our dev team. Will follow up with you as soon as I get more info from them.

    #333630

    support-michael
    Keymaster

    @javedaziz

    1) Are you building for iOS, Android, both?

    2) What version of MobiOne are you using, 2.2.X production or a 2.3 milestone dev version?

    #333646

    javedaziz
    Member

    Hi,
    I’m using the 2.2 licensed version. It’s not showing any new updates.
    Thanks

    #333649

    @javedaziz

    It works just fine in native android application build with MobiOne 2.2.3. By default, calls all domains are allowed in native application. E.g. putting this code as ‘Run JavaScript’ button OnClick handler:

    $.ajax({
      url: "http://google.com",
      cache: false
    }).done(function( html ) {
        alert(html);
    });
    

    gives alert with page content.

    If you’re trying to do the same in MobiOne TestCenter don’t forget to disable security (Menu Browser->Web Security).

    Can you please give us more details on what are you trying to do.

    #333653

    javedaziz
    Member

    Hi,
    I’m building a reporting application for IPAD. and I am using infragistic html5 controls.below is the link for the on of the html pages
    http://www1.gasco.ae/infodash/reportview.html
    these are working fine when they are hosted on the web server but when i am putting it inside the app pages . the request is getting blocked.

    i tried using phonegap to implement this task. and it worked well. they have config.xml to allow domains to do ajax calls.

    I like mobione b/c of its testing studio and ios build process.please tell me if there is a similar functionality available inthe mobione b/c its using same apache cordova component.

    #333670

    Hi again,

    Yes, we support such an option. For iOS version of Cordova builds it is located in Cordova.plist file under the key ExternalHosts.
    In Mobione it is set to “*” for all native builds, thus any outgoing requests is allowed. I’ve just double checked it with MobiOne 2.2.3 and sample I’ve provided above.

    So the problem could be with the library you are using. You can try to make simpler test without 3rd party UI libraries to check this.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: domain whitelist

You must be logged in to post in the forum log in