I was wondering how I should do this.
I have some https pages, but need to call in some http content from my CDN provider.
The content I am wanting to load via http is javascript, css and images.
Now when doing this at the moment, some browsers give a mixed content warning, and ask if to show just secure or all content. What I would like to do, is get around this, and give no warning, but keep the https page.
All I can come up with is:
Make a PHP script that uses cURL or file_get_contents, and get the server to load the page in it.
But the problem with this, is it makes the CDN a bit pointess on https pages (I was thinking signup and login at the moment), as it would send the server IP, which is UK and not the visitor which could be from the USA.
Can anyone think of another way to mix the content, but get around the warnings, other then asking each visitor, to change there settings, which I think is a no go.
Thanks.
Garry
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…