Search code examples
javascriptxmlhttprequestresourcesmixed

Mixed Content The page at was loaded over HTTPS but requested an insecure resource This request has been blocked the content must be served over HTTPS


Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure resource ''. This request has been blocked; the content must be served over HTTPS.


Solution

  • There's no way to disable mixed content using javascript but you can add this tag

    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    

    to your HTML to allow mixed content