Monaca Onsen UI Discord Chat Github Repo

Off domain XML requests?

  • I have an app that will require access to a server that is not on the same server.

    For example: The app is (currently) hosted on (for development) but needs to access an outside server, say,

    When I try this, I get “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

    Okay, I get it, it’s a security thing, but nothing I’ve been able to google has helped me understand how to work around this limitation on Monaca/OnSEN.


  • Further information:

    This works from the Monaca testing app on the iPhone, but not from the browser development interface.


  • Monaca

    @fransena That’s because there are some limitations while using Monaca Live Preview (the browser development interface) such as:

    • Cordova Plugin APIs are not available.
    • Ajax requests will fail because of Cross-origin restriction. However, it can be done if server-side scripts return “Access-Control-Allow-Origin” Header (i.e., Cross-Origin Ajax Request is permitted).
    • Viewport appearance may differ from real devices.
    • Monaca Backend API and Push Notifications can not be initialized.