是否可以在安卓电容应用程序上设置https://example.org的默认原点,而不是标准的http://localhost?
发布于 2019-12-13 18:38:45
源地址由webview处理,并依赖于应用程序提供服务的url,因此您不能直接更改源地址,但您可以更改电容器使用的url地址,这将更改源地址。要更改url,请在capacitor.config.json中配置服务器对象的主机名和androidSchene属性
"server": {
"hostname": "example.org",
"androidScheme": "https"
}https://capacitor.ionicframework.com/docs/basics/configuring-your-app#common-configuration
https://stackoverflow.com/questions/59319882
复制相似问题