Embedding pens from CodePen

If you have time for it, now is a great time to test if it’s working. We’ve got our firewalls turn down super low (shhhhhh) because of some other unexplained Cloudflare weirdness. So my hunch is that fixes this.

4개의 좋아요

Nope?

3개의 좋아요

Can you see some kind of request get blocked? Or maybe was the oEmbed us turned off because we were blocking you for so long?

3개의 좋아요

I can’t see it working from here either from meta, local, or a console:

[13] pry(main)> Oneboxer.preview('https://codepen.io/web-tiki/full/dNpgrR', invalidate_oneboxes: true)
=> ""
[14] pry(main)> Oneboxer.preview('https://codepen.io/web-tiki/pen/dNpgrR', invalidate_oneboxes: true)
=> ""
3개의 좋아요

Hey Chris,

I think this is a regression from our side. I just noticed that onebox has stopped sending custom Discourse user agent in request header. Working on a fix now.

EDIT: What I was seeing above was a different issue specific to development environment (fixed here). The actual issue was FinalDestination library not using custom Discourse onebox user agent.

3개의 좋아요

Okay, fixed via

https://github.com/discourse/discourse/commit/00c406520e48a76ae51f072b8d11af7ca1c3aca6

Let’s try now:

Thanks @chriscoyier :tada:

10개의 좋아요