Document viewer

0
Document viewer not showing in acceptance and production environments, Running a Cordova app. This used to work on the sandbox and still works while running locally. Upon further investigations, I found that it gives the error refused to display '<url>' in a frame because it set 'x-frame-options' to 'sameorigin' .  When loading the desktop version using the responsive layout on a desktop web view it works. 
asked
3 answers
2

You can solve this by adding the following tag in the xml configuration file , config.xml fille =>

<access origin="*" />

<allow-navigation href="https://www.google.com/*" />

Which means cordova app will navigate to Google page and loads the content of respected page.

answered
0

Did you adjust the config XML to allow the URL of your application?

Something like

<allow-navigation href="https://google.com" /> 

Regards,

Ronald

 

answered
0

Hi Ndivhuwo,

Are you seeing any logs in the console of the hybrid application? It sounds like Ronald's suggestion is along the right path. Can you please check the answer on this question (https://forum.mendix.com/link/questions/88902) and see if that resolves your issue? 

answered