Website on SSL via proxy but backend mediafileupload error XMLHttpRequest

Tobania Kentico asked on March 14, 2017 11:55

Mixed Content: The page at 'https://mywebsite.be/Admin/cmsadministration.aspx#436564ee-89e9-4719-939a-0d7b57ece744' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mywebsite.be/CMSModules/MediaLibrary/CMSPages/Mu…;svg|Hash|48125a8685e5fda9915dcee47cc6df355d00e60bb5a272af2831af1341aed3fd'. This request has been blocked; the content must be served over HTTPS.

Is there some kind of solution for this? Found some kind of answer on https://docs.kentico.com/k10/securing-websites/deploying-websites-to-a-secure-environment/configuring-ssl/ssl-accelerator-support.

Correct Answer

Dennis Hulsmans answered on March 17, 2017 10:34

Hi Trevor

Thanks for your reply. We tried the solution on https://docs.kentico.com/k10/securing-websites/deploying-websites-to-a-secure-environment/configuring-ssl/ssl-accelerator-supportand this seems to solve the issue.

KR, D.

3 votesVote for this answer Unmark Correct answer

Recent Answers


Trevor Fayas answered on March 14, 2017 14:14

I would not recommend using the admin interface through a proxy. It's much better to use a host file (just Google that) so you can hit the actual server itself. What we do is make an alias for the site like preview. Or staging. Or direct. And art that as a site domain alias and edit the site through that.

I assume the proxy is a cdn?

1 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on March 17, 2017 14:18

I learned something, never saw that article, i'll be doing that from now on as well then!

0 votesVote for this answer Mark as a Correct answer

Mike Matthes answered on April 24, 2018 18:50

Fixed the issue by implementing the code on this page and then changing the line below: https://docs.kentico.com/k10/securing-websites/deploying-websites-to-a-secure-environment/configuring-ssl/ssl-accelerator-support

Change string forwardedSSL = headers.Get("HTTP_X-Forwarded-Proto");

To string forwardedSSL = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X-Forwarded-Proto"];

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.