Mon, 07 Mar 2022 08:21:53 GMT
Join the conversation at slack.cordova.io
Sun, 06 Mar 2022 20:26:13 GMT
@mathewp.94 says
Is there a way to serve an iOS webview from http or https instead of file:// ? I‘m having issues with a third party script and I think it’s caused by my app not “serving” itself from http/https
Sun, 06 Mar 2022 20:31:55 GMT
@norman137 says
Apart of hosting from an actual remote webserver, no. (And this is not a recommend approach either)
iOS does have custom schemes so you can “host” from
<your-scheme>://
but well-known protocols are forbidden, so you can't set the scheme tohttp
orhttps
. Usually using schemes addresses issues related to “insecure contexts” though. You can try it on cordova-ios@6 using<preference name="hostname" value="localhost" />```
Sun, 06 Mar 2022 20:32:50 GMT
@mathewp.94 says
Ah ok, good to know
Sun, 06 Mar 2022 20:33:33 GMT
@mathewp.94 says
That's unfortunate but thanks for clarifying