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!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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?
Chris StanyonWebDevCommented:
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.
filtrationproductsAuthor Commented:
Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.