Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 232
Nyxynyx Avatar asked Mar 27 '15 16:03

Nyxynyx


1 Answers

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?

like image 159
Eric Oemig Avatar answered Sep 28 '22 21:09

Eric Oemig