I am using the following code as a link in my android app.
<a href='https://192.168.50.48:443/trcz0.html'>Click Here</a>
Basically 192.168.50.48 my server ip.
and 443 is port.
But it showing message like "GET https://192.168.50.48/trcz0.html net::ERR_INSECURE_RESPONSE"
if I use the link in the Chrome or Firefox browser the it shows me the massage that "Your connection is not secure".
If i ignore the message then i can connect to the page. I am using my own SSL in the server.
What should i do now? Intel xdk does allow to access any untrusted certificate. Or I have change something on my project.
I can get access all the https link which has trusted certificate. Kindly help me.
This is not an XDK issue but a Cordova and webview issue. The XDK does not control the behaviour you are seeing, it is controlled by the webview, the target device and the way the Cordova framework sets up that webview. See these docs:
Thanks for quick reply.
I have read all the links. And I also use my https://192.168.50.48/trcz0.html link in the whitelists and Content Security Policy (CSP) in the index.html.
But still its not working. Could you kindly help me the easiest way so that I can bypass it? I am new in app designing and Intel XDK.
Numery -- there is no "easy answer" for this issue. You need to search the web for some solutions. The ones that I have found look like you cannot apply them with our build system, you might have to use Cordova CLI directly. Here's a search to get you started > cordova phonegap net::ERR_INSECURE_RESPONSE response < in particular, this search result > http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/ <
Thanks a lot for your quick response. Now I am using the trusted certificate. I bought this certificate from the vendor.
But still getting the same error. "Failed to load resource: net::ERR_INSECURE_RESPONSE"
Kindly tell me what should I do now.
Numery -- please follow the search links I provided. What you are asking is outside the scope of this forum, we are not able to provide general programming help. The XDK creates standard Cordova (aka PhoneGap) apps. Solutions you find for Cordova apps can be applied to your XDK app. The XDK is just a front-end for building Cordova apps. Please search the many excellent Cordova blogs written by other developers and Stack Overflow, where you will find more useful information regarding the Cordova and webview programming environment.