Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alexander Tkacuk 21 posts 122 karma points
    Feb 08, 2023 @ 18:52
    Alexander Tkacuk
    0

    Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure element.

    Umbraco 11 is running under IIS. Everything seems to be ok. However, these messages have now appeared in the browser log.

    "Mixed Content: The page at 'URL' was loaded over HTTPS, but requested an insecure element 'URL'. This request was automatically upgraded to HTTPS, For more information see URL"

    This is an image from which the URL has been returned by the "IPublishedUrlProvider". When using the method "GetMediaUrl" with the image as "IPublishedContent" and the "UrlMode.Absolute" the URL is returned.

    But this URL is HTTP and not HTTPS as expected. What am I doing wrong here? Is there anything else that needs to be configured? Or is it a BUG?

    And this is the call to the method: var src = this.publishedUrlProvider.GetMediaUrl(brandLogo, UrlMode.Absolute)

    Everything else is dutifully delivered with HTTPS. The image can also be seen as HTTPS in backoffice.

Please Sign in or register to post replies

Write your reply to:

Draft