You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/27 13:57:16 UTC
[GitHub] [cordova-plugin-geolocation] Jakasha commented on issue #123:
Android Error : Only secure origins are allowed error
Jakasha commented on issue #123: Android Error : Only secure origins are allowed error
URL: https://github.com/apache/cordova-plugin-geolocation/issues/123#issuecomment-559097868
The problem is that the default web view scheme for Android is: http://localhost
The geolocation plugin does not accept "http://..." as origin for position requests.
On iOS it works because the default scheme is ionic://localhost
Set the Android Scheme to "https" in the config.xml file:
`<preference name="Scheme" value="https" />`
NB: it is necessary to allow also the navigation for the new scheme:
`<allow-navigation href="https://*"/>`
Other web view configurations:
https://github.com/ionic-team/cordova-plugin-ionic-webview
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org