Last post Dec 15, 2016 09:31 PM by mgambone
Dec 15, 2016 05:47 PM|mgambone|LINK
We've been required to convert our URL from http to https. We obtained a single security certificate but we used it for three websites that are residing on the same server.
Problem is, when we use the https URL, the following web browsers give us the following errors:
Firefox: "Connection is not secure"
Chrome: "This page is trying to load scripts from unauthorized sources."
Edge: "We've blocked content sent over insecure connections..."
It seems like https connection considers all my scripts as insecure.
How do I solve this? Appreciate any response.
Dec 15, 2016 05:54 PM|ryanbesko|LINK
Make your script references relative (like ..\blah.js, etc.) or hard code https into the script reference.
Dec 15, 2016 06:01 PM|PatriceSc|LINK
You likely have some hardcoded http:// locations inside your pages (which shows a warning as it means your main page is secured but that you still get some other content from an unsecured source). Just replace that with https (most if not all CDN providers
are providing https support).
You can also use F12 Network to easily spot all remaining http requests.
If for some reason you still need to support both http and https, see
Dec 15, 2016 06:46 PM|mgambone|LINK
Made changes to one of the websites and it works.
However, in one of the website, when I tried to republish it using Visual Studio 2015, it failed.
Dec 15, 2016 09:31 PM|mgambone|LINK
Got it to work. Simple mistake in publishing: I forgot to change the Destination URL into https when publishing it.
It now works.
Thanks to you all.