Add WhiteListIframe embed of everycircuit.com

AI-generated summary

The discussion revolves around embedding content from everycircuit.com using iframes on a Discourse forum. Bank_Live initially faced issues with embedding http://everycircuit.com/embed/ links, as they were blocked due to mixed content (HTTP on an HTTPS site). sam explained that the iframe whitelist API had been updated, allowing site admins to permit specific iframes via settings. david clarified that the issue was a browser security feature preventing HTTP content on HTTPS pages. Bank_Live confirmed that everycircuit.com is now supporting HTTPS, and the embedding now works successfully, as shown in a later post Bank_Live.

  <a href="http://everycircuit.com/circuit/5222925563068416">Push-Pull Boot Converter - EveryCircuit</a><br>
    <iframe width="560" height="360" src="http://everycircuit.com/embed/5222925563068416" frameborder="0"></iframe>

I add url line see from history Plugin whitelist iframe but can not work. How should I fix it?

The API for whitelisting iframes is a mess.

I will fix it, it is on my list.

thank you very much.

I tried use http. It work. But url embed of everycircuit.com is http only. How to fix it to work my website.

API is no longer a mess per:

https://github.com/discourse/discourse/commit/e283e6aea002fb533640e68f8ee7447cf0a7c90d

Feel free to allow whatever iframes you want via site settings.

Oh thank you very much :grinning: and i can add link embed from something web http or not. I trid add http://everycircuit.com/embed/ and post

<iframe width="560" height="360" src="http://everycircuit.com/embed/5222925563068416" frameborder="0"></iframe>

not work

I try load http it work :sweat:

This isn’t a Discourse problem, it’s a browser security feature. You cannot embed an insecure (http) website in a secure (https) website. If you check your browser developer console you’ll see the error message

Mixed Content: The page at https://your.forum/65/3 was loaded over HTTPS, but requested an insecure resource http://everycircuit.com/embed/5222925563068416. This request has been blocked; the content must be served over HTTPS.

The only way to get it solved would be to contact everycircuit.com and get them to set up HTTPS connections to their site.

Yes. I send mail to Everycircuit themes them said “They are working on a version which will work in all browsers. When do that, They will support https.” and I’ll wait.

I suspect this works as they have very likely added https support by now at Everycircuit, can you confirm @Bank_Live?

Yes! It work now :grin: :tada:

thank you very mush for tell me.