Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
6.1k views
in Technique[技术] by (71.8m points)

html - certain images wont show up in codepen, but do show up in we3schools

i am trying to put an image in my document at codepen. for some reason it shows the link as broken, yet it shows up if i try to load the image into the browser , or even in w3schools frame.

here is a link to the code, https://codepen.io/richardengle/pen/rNMRzzE here is the image that wont show in codepen, but will show in the browser and also in w3schools http://ryanspickapart.com/images/credit-card-icons.png

here is the code - note that the second image[dog] shows up fine... why wont the other image show here?

<img src="http://ryanspickapart.com/images/credit-card-icons.png" alt='image wont load'>
<br>
<img src='https://images.unsplash.com/photo-1513639725746-c5d3e861f32a?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80' alt='image works fine' >


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The SSL certificate used to sign HTTPS connections to ryanspickapart.com was granted to picknpullsa.com.

If you attempt to access ryanspickapart.com via HTTPS, your browser may warn you about this mismatch:

connection security warning

And may refuse to download assets:

loading error message

This is not a problem when you are accessing the content via HTTP since the certificate is not used. Codepen is likely enforcing that you access assets via HTTPS.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...