Android device communicate with local API server

后端 未结 1 1174
别跟我提以往
别跟我提以往 2021-01-28 05:23

I would like to know how to get my Android app being simulated on an external device to communicate with a local API server running on my machine.

The app is using cordo

相关标签:
1条回答
  • 2021-01-28 06:02

    Resolved by using https://github.com/apache/cordova-plugin-whitelist plugin and adding <meta http-equiv="Content-Security-Policy" ...> in <head> of index.html file.

    For more info, read https://github.com/apache/cordova-plugin-whitelist#content-security-policy.

    0 讨论(0)
提交回复
热议问题