Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

AJAX does not work in Android

Mario_Cesar_B_
Beginner
577 Views

Hello my friends,

AJAX work at emulation and emulation on device with app preview but does not work when compiled as APK.

What should be happenning ? 

Thanks.

 

0 Kudos
1 Reply
Nick_S_1
Beginner
577 Views

I had this error too. To fix it,

  • Make sure your Whitelist settings are correct under Build Settings
  • Install the cordova-plugin-whitelist
  • Add the meta tag <meta http-equiv="Content-Security-Policy" content="default-src 'self' * 'unsafe-inline'"> or customize per the plugin docs
0 Kudos
Reply