. Advertisement .
..3..
. Advertisement .
..4..
I get an error
net::ERR_INSECURE_RESPONSE
when trying to pull an iframe of an Html website into another website. How to fix the failed to load resource net err_insecure_response error? Please give me some advice.
The cause:
This error happens perhaps due to Google Chrome is blocking by default your resource which you use a self-signed SSL certificate over HTTPS protocol because Google Chrome notices that it is not security.
Solution:
There are many ways to solve this problem. You can use HTTP protocol to access your frame instead of HTTPS.
Another way is opening your terminal and go into the URL. It will take you to the API page and it will accept the SSL certificate, then return to your app page and load it again. Notice that SSL certificates for your development environment should have been provided previously.
Or simply you only need to restart Chrome.
After I restart it, there is no error and the same page works well. And the error in the console is:
The self-signed SSL certificate used by your resource is likely to be over HTTPS protocol. Google Chrome blocks this type of resource by default in Chromium.
This can be avoided by following these steps:
https://www.domain.com
, you can open a new tab in Chrome and go tohttps://www.domain.com
.As you can see, the problem is that every visitor to your website must complete this task in order to access your frame.
Chrome will block your URL in each navigation session. Chrome can however remember for all time that you trust the domain.
It is possible to access your frame via HTTP instead of HTTPS. This will solve the problem.