Search code examples
c#htmlcross-domainepiserver

'blocked' The page at 'X' was loaded over HTTPS, but ran insecure content from


How I can fix this block if everything happen inside of my domain?

[blocked] The page at 'https://example.com/secure/CMS/Edit/Default.aspx' was loaded over HTTPS, but ran insecure content from 'http://example.com/en/?idkeep=True&DE_VM=4&DE_LNK=183_185790&DE_RND=536512159&id=183_185790': this content should also be loaded over HTTPS.

This happen in the CMS called EPiServer 6.


Solution

  • Because I get this project in the meddle without any other developer I will know, this server has a reverse-inverse-proxy. Than without any code the server change the protocol.

    But to fix or minimize this problem I ensure all scripts are assigned with relative protocol. Removing http[s]:// and leave just //