Start a new topic

Wikitude Cordova and access origin whitelist

 Hi, I'm using the Wikitude Cordova plugin 5.3.1 with a mobile app that uses whitelisting (see https://cordova.apache.org/docs/en/latest/guide/appdev/whitelist/)


Does the plugin connect to a wikitude server during operation? If so, can you let me know what value should be set as an <access origin> tag in my whitelist?

1 Comment

Hi Gearoid,


A wikitude AR experience loads the core script like this:

<script src="https://www.wikitude.com/libs/architect.js"></script>

The "https://www.wikitude.com/libs/architect.js" is intercepted by the webview and the server is not actually contacted. I am not entirely sure how this will behave with the access whitelist from cordova and at which point the url is being blocked by it. 

I would suggest you try if it works when you block all domains and if it does not add:

<access origin="https://www.wikitude.com" />

 

 

Best regards,

Alex

Login or Signup to post a comment