Mixed Content SSL warnings using login portal from external website

I have a website (site1.com) that has a login script that it pulls from site2.com. Site1.com has a SSL certificate assigned to it, and site2.com has no SSL certificate. On site1.com I have a pop up login dialog box with a login script that is linked from site2.com. The problem is site1.com is showing mixed content (insecure warnings) when trying to use that login script. The only way to get the "secure" green lock on site1.com is to remove that content completely. Is there anyway to get this content secured while referring\linking to site2.com?

Thanks in advance!
LVL 1
filtrationproductsAsked:
Who is Participating?
 
Chris StanyonConnect With a Mentor Commented:
Simple answer is No. If you're pulling in content from a non-secure site, you will always get the Mixed Content errors. Either secure both sites, or hold a local copy of the script on your secured server.
0
 
nociSoftware EngineerCommented:
Think about it..., any party that can become between site1 and site2 can intercept the script transfer and inject their own script.
(un encrypted links have no known source, no known destination (optional 2 way authentication in SSL),  and no verification of data has been modified during transit.

So if any part needs security all parts need security. Hence the warnings.
Then again with the existence of Lets Encrypt there is no reason anymore to NOT- encrypt anything...
And also overhead of encryptions is hardly noticeable on modern platforms, if not hardware assisted with special instructions.
0
 
filtrationproductsAuthor Commented:
If I were to secure site2.com, would this need a special type of multi domain ssl? Or as long as site2.com is secure, site1 will not throw any warning message or mixed content warnings?
0
 
Chris StanyonCommented:
All you need to do is secure each site with it's own SSL. Then you won't get the errors. It's no different than when you include the jQuery library or Bootstrap. If you include those scripts from the HTTPS version of a CDN, then you get no errors.
1
 
filtrationproductsAuthor Commented:
Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.