About
I'm Andreas Fuchs. I keep a blog for my own hacks at http://boinkor.net.
This soup comes in many different flavours, and while they may not all be savoury, they are most definitely binary.
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
Click here to check if anything new just came in.
August 11 2009
“— Ned Batchelder: Http-https transitions and relative URLsBut what if you need to pull resources from another site? For example, a CDN (content delivery network)? Here the problem seems to be thornier:
<img src='http://fast.cdn.net/pix/smiley.jpg' />If this reference appears in an HTTPS page, the mixed content warning will appear. How to craft a reference that works for both? The answer is again relative URLs, but using a more obscure syntax:
<img src='//fast.cdn.net/pix/smiley.jpg' />”
Reposted from
fin
