简体   繁体   中英

Mismatch protocol http and https

This issue occurs when the frame requesting access has a protocol of https, the frame being accessed has a protocol of http(toplevel, http://www.example.com/ particularly). how to get around this problem? Thanks for advance!

You could try to make it protocol agnostic if the frame supports either protocol. That way it'll choose the one being served.

Eg

<img src="//www.placehold.it/250x250" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM