0

When I call the third party HTTP URL in my page. Then, I face the below error.

How can I solve it?

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

Dharmik Ponda
  • 173
  • 4
  • 13
  • Refer the link you can help. https://magento.stackexchange.com/questions/195440/mixed-content-this-request-has-been-blocked-the-content-must-be-served-over-ht?rq=1 – Kirti Nariya May 29 '19 at 04:47
  • I have already done this process. but It's not working yet. – Dharmik Ponda May 29 '19 at 04:53
  • refer this url to https - https://developers.google.com/web/fundamentals/security/prevent-mixed-content/fixing-mixed-content – Anas Mansuri May 29 '19 at 04:56
  • I have try using add "" in head but It's not worked. And for the other one "copy the content of URL", I can't accept this way because I have a large amount of data. @AnasMansuri. – Dharmik Ponda May 29 '19 at 05:03
  • Go to the Network by doing inspect element and see which request is served over http and you need to fix selectively. It might be some third party script causing this which is not visible as per your question – Arif Ahmad May 29 '19 at 05:41
  • Yes, I know. I have one HTTP URL. And I want to allow in my page. So is it possible? @ArifAhmad – Dharmik Ponda May 29 '19 at 05:53
  • are they same domain or different domains? – Arif Ahmad May 29 '19 at 05:54
  • 2
    Or maybe let me revise my question. Why you need to make it http only? If it is on your control then just change to https. If not then I have another simple solution for you. Just create a page on your server which can be served over https and from that page do another curl request to get the http content. Might not be possible always but just throwing options for you to have more ideas – Arif Ahmad May 29 '19 at 06:00
  • are they same domain or different domains? -> Another domain. I want to load the third party URL in my page – Dharmik Ponda May 29 '19 at 06:25

1 Answers1

0

You can refer below link for same block HTTP Request an HTTPS page.

Mixed Content: This request has been blocked; the content must be served over HTTPS

Kirti Nariya
  • 3,471
  • 2
  • 21
  • 50