Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Mar 03, 2016 @ 16:20
    Simon
    0

    Cloudflare SSL and Umbraco

    Hi Guys,

    I am using the cloudflare flexible SSL so that the site will be served securely.

    But for some instances I am experiencing some issues regarding Mixed Content of urls:

    Mixed Content: The page at 'https://www.mywebsite.com.mt/contact/' was loaded over HTTPS, but requested an insecure script 'http://www.website.com.mt/bundles/validationscripts?v=dyojIg78p8rqcsTK59r6Hv7BZDgZsMbaeXULVch0n4M1'. This request has been blocked; the content must be served over HTTPS.
    

    For example, the above example, is causing the optimus bundling from not working since it is being served as HTTP.

    Also, for another project I was using bulk manager but cannot access it since it is being requested in HTTP.

    Regarding the umbraoUseSSL, I have tried to set to true but it was causing a redirection loop since it is being checked as well through cloudflare.

    Does anybody has any idea how to tackle this please?

    Kind Regards

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Jun 07, 2016 @ 14:52
    Markus Johansson
    0

    Did you find any solution to this issue? =D Running the backoffice over a non secure domain? =D

  • Tim 66 posts 89 karma points
    Oct 12, 2017 @ 10:50
    Tim
    0

    I'm having exactly the same issue! please, can anyone help?

  • David Armitage 505 posts 2073 karma points
    Nov 14, 2018 @ 06:55
    David Armitage
    0

    Did anyone find a solution for this.

    I am having the same problem. A load of script issues when logging in as https://

    Something to add.

    I have never had problems logging into the backoffice with https:// and I believe with websites on this same code base.

    I can confirm on this problem website I am also using Cloudflare. Maybe this is related.

    Please see my attached script issues.

    Thanks in advanced enter image description here

    David Armitage

    Twitter: https://twitter.com/DavidA_Armitage

  • David Armitage 505 posts 2073 karma points
    Nov 14, 2018 @ 07:07
    David Armitage
    0

    Hi,

    I found this link. Look like you could add some rewrite script in the web config but it didn't working for me.

    http://jasonwatmore.com/post/2014/09/25/aspnet-fix-for-https-ssl-insecure-mixed-content-warning

    The site didn't load when I added the script.

  • Fredric 10 posts 80 karma points
    Feb 21, 2019 @ 12:40
    Fredric
    0

    Did anyone find a solution to this?

  • Stefano M. 2 posts 74 karma points
    Feb 25, 2019 @ 16:31
    Stefano M.
    2

    Hi, that kind of problem is pretty common when using CloudFlare Flexible SSL. That configuration is securing the connection between the client and their servers, but not from their servers to yours.

    That means that when the user types https://www.yoursite.com, your server receives the HTTP clean request on http://www.yoursite.com.

    Activating the useSSL flag, the server redirects the client to https:// (remember it is receiving http://), but CF keeps passing it to the server as http:// so it enters a loop :)

    Now, there are 2 ways out I found in the years:

    1. activate Full SSL con CloudFlare and ensure your server is serving HTTPS content (even if with "invalid" certificate, CF will pass on that)
    2. create a "custom SSL check" on your server that reads the special header CF is passing with the request, "X-Forwarded-Proto: https", instead of reading the standard headers

    If possible, I would go with 1) since it lets you keep everything as "standard" as possible :)

Please Sign in or register to post replies

Write your reply to:

Draft