You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/10/16 20:34:09 UTC

[GitHub] [cordova-android] globules-io opened a new issue, #1509: hostname is set via preference, webView is still launched over file:// protocol

globules-io opened a new issue, #1509:
URL: https://github.com/apache/cordova-android/issues/1509

   # Bug Report
   
   ## Problem
   When hostname is set via preference, webView is still launched over file:// protocol
   
   ### What is expected to happen?
   webView location hostname should take the hostname as set in preferences
   
   ### What does actually happen?
   webView is loaded over file:// instead of the custom hostname. So cookies can't be set for the proper hostname.
   
   ## Information
   <preference name="hostname" value="io.globules.test" />
   
   ### Environment, Platform, Device
   cordova 11
   cordova-android 11
   android 13
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek closed issue #1509: hostname is set via preference, webView is still launched over file:// protocol

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1509: hostname is set via preference, webView is still launched over file:// protocol
URL: https://github.com/apache/cordova-android/issues/1509


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1509: hostname is set via preference, webView is still launched over file:// protocol

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1509:
URL: https://github.com/apache/cordova-android/issues/1509#issuecomment-1280058913

   `AndroidInsecureFileModeEnabled` flag disables the internal WebviewAssetLoader` which powers the http/s scheme. So yes this is intentional.
   
   You can either use file protocol or not. The API doesn't allow both at the same time. Cordova plugin file 7 offers a way to get a special http url for files saved using the file plugin, which may be want you want.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] globules-io commented on issue #1509: hostname is set via preference, webView is still launched over file:// protocol

Posted by GitBox <gi...@apache.org>.
globules-io commented on issue #1509:
URL: https://github.com/apache/cordova-android/issues/1509#issuecomment-1280057619

   Is this expected behavior? I thought `AndroidInsecureFileModeEnabled ` was only about file:// access even if hostname is used, as compatibility measure? Can someone confirm this is the expected behavior ?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] globules-io closed issue #1509: hostname is set via preference, webView is still launched over file:// protocol

Posted by GitBox <gi...@apache.org>.
globules-io closed issue #1509: hostname is set via preference, webView is still launched over file:// protocol
URL: https://github.com/apache/cordova-android/issues/1509


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] globules-io commented on issue #1509: hostname is set via preference, webView is still launched over file:// protocol

Posted by GitBox <gi...@apache.org>.
globules-io commented on issue #1509:
URL: https://github.com/apache/cordova-android/issues/1509#issuecomment-1280057099

   Turns out this is because `AndroidInsecureFileModeEnabled` was set to `true`


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org