小编Kam*_*mar的帖子

如何在ionic中为https请求添加Android SSL证书?

在ionic模拟器中,所有http和https都可以正常工作,但是在实际设备发行版中,它会停止工作。

许多人建议为发行版本添加SSL证书,但我不知道如何添加它?

我已经尝试了所有这些以发出https请求吗?

<access origin="*"/>
<access origin="*"/>
<allow-navigation href="*"/>
<allow-intent href="*" />
Run Code Online (Sandbox Code Playgroud)

还添加了白名单插件,但不起作用。

也尝试了这个但不起作用

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Run Code Online (Sandbox Code Playgroud)

phonegap-plugins cordova phonegap-build ionic-framework cordova-plugins

5
推荐指数
1
解决办法
3504
查看次数