Wednesday 5 July 2017

Mixed content in Chrome and IE

Mixed content in Chrome and IE

Description:
In this example we explain that how to solve the following error those are occurred when we use the Iframe or HTML Web Resource in Dynamic CRM the error are listed bellows:
Mixed Content in Chrome and IE.

In my HTTPS enabled site I have added an iframe that should show content from my other web site, but it is not working under https.in Chrome, the iframe isn’t loaded and in the console I see these two errors.

Mixed Content: The page at 'https://mysite' was loaded over HTTPS, but requested an insecure resource 'http://myothersite.com'.

This request has been blocked; the content must be served over HTTPS.
Failed to load resource: net::ERR_CACHE_MISS


So to solve this error added below code line in your code.


<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
This entry was posted in :

0 comments:

Post a Comment