Search code examples
javascriptnode.jscordovameteormeteor-cordova

Meteor.js Cordova Error: ERROR whitelist rejection


When running a Meteor.js Cordova iOS app on the iPhone, some of the images in the app do not load and the XCode console shows the error

ERROR whitelist rejection: url='https://d2xngy2dw7hums.cloudfront.net.....

How can we add some/all domains to the whitelist?


Solution

  • App.accessRule('*');  // add this to your mobile-config.js
    

    You will need to kill and rebuild your meteor project

    meteor run ios-device 
    

    See related question for more details: In meteor app how to add orgin=* in cordova config.xml?