breautek commented on issue #1081:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/1081#issuecomment-2706856846

   I'm still unable to reproduce your issue in a simple application:
   
   ```javascript
   function onDeviceReady() {
       // Cordova is now initialized. Have fun!
   
       console.log('Running cordova-' + cordova.platformId + '@' + 
cordova.version);
       document.getElementById('deviceready').classList.add('ready');
   
       cordova.InAppBrowser.open("https://shop.aardvarksportsshop.com";, 
"_blank");
   }
   ```
   
   I didn't include options cause I don't see your full set of IAB options, and 
I kept the location bar so that it can be seen that it's loading https:// as 
requested.
   
   
![Image](https://github.com/user-attachments/assets/fca702b9-789e-419b-9711-c85ad4fddebc)
   
   I'll first double check your environment that it's running the latest 
releases. Perhaps it was an issue in the past that has already been addressed.
   
   ```
   [norman@norman-workstation inappbrowser]$ cordova platform ls
   Installed platforms:
     android 13.0.0
   Available platforms:
     browser
     electron
   [norman@norman-workstation inappbrowser]$ cordova plugin ls
   cordova-plugin-inappbrowser 6.0.0 "InAppBrowser"
   [norman@norman-workstation inappbrowser]$
   ```
   
   If the server had a previous permanent redirect status code (HTTP Code 301) 
on `https://` url to a `http://` url that response may be cached and could 
explain why the the webview is attempting to load a `http://` url even though a 
`https://` url is being requested. Webview data has it's own cache inside the 
application so clearing application data and cache should wipe out any 
permanent redirect caches.
   
   Outside of that I don't have any other ideas why you might be seeing http 
redirect behaviour, when another environment doesn't exhibit the same behaviour.


-- 
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-unsubscr...@cordova.apache.org

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


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

Reply via email to