Home > Mobile >  Apk cross-domain question - web access
Apk cross-domain question - web access

Time:09-22

The phenomenon of
App https://xxxxxxxxxxxxxxxx backend server configuration, the server has sent the request of http://xxx to get the data, packaged into after the apk can be normal request,
Through the browser to access, an error:

Error message, and the Mixed content on the page at...
Ask the baidu, in the JSP new & lt; Meta HTTP - equiv="Content ws-security - Policy" Content="upgrade - the insecure - requests" & gt;
All HTTP requests to the HTTPS requests, new problems come, now all requests before http://xxx into https://xxxxx, obviously cannot be access, again ask baidu
Need to forward the nginx configuration on the server, https://xxxx all forwarded to the corresponding request, http://xxx


Apk is HTTPS server after packaging, can direct access to the HTTP request, through the browser to access will appear many problems, inside the apk do any processing, how to deal with, what principle, thank you!

CodePudding user response:

Chrome is compulsory to HTTP to HTTPS, that is to say, even if you use HTTP related API to write a request, nor from the HTTP request forced into HTTPS,

The browser's pan,
  • Related