tada123 opened a new issue, #1681:
URL: https://github.com/apache/cordova-android/issues/1681

   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Should accept (or at least have an option) to support non-ssl requests.
   
   ### What does actually happen?
   Chromium (inspected WebView) error message:
   Mixed Content: The page at 'https://localhost/index.html' was loaded over 
HTTPS, but requested an insecure image 'http://192.168.100.20/img.jpg'. This 
request has been blocked; the content must be served over HTTPS
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   Cordova 11 <br>
   Added: `<meta http-equiv="Content-Security-Policy" content="default-src * 
gap: ws:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; object-src 'none'; 
style-src 'self' 'unsafe-inline' *"/>` to head section of `index.html` <br>
   
   Added `<preference name="MixedContentMode" value="allow" />` to `config.xml` 
<br>
   But still unable to send non https request (or load an image from `http://`)
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `<img src="http://192.168.100.xx/image.jpg";></img>`
   OR
   `fetch("http://192.168.100.20/img.jpg";)`
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Moto G5 potter (Android 8.0  aarch64)
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, android@11  no plugins
   Other Frameworks: None
   Linux, CLI
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [N - Last version does not support android 6.0, but i need to support also 
6.0] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


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