Can web app built by Monaca handle XMLHttpRequest?
honglio last edited by
I have some html file which send XMLHttpRequest to its web server to get data. If I built these html files to app using Monaca, I suppose the XMLHttpRequest will not work due to cross origin requests. Am I right?
@honglio This can be accomplished by utilizing the Whitelist Plugin which is now part of core plugins for Cordova. More information on how to setup your config can be found here: https://cordova.apache.org/docs/en/latest/guide/appdev/whitelist/index.html