Gyfcat Onebox Bug

AI-generated summary

Users reported that Gyfcat links failed to embed (onebox) on Discourse instances using SSL/HTTPS. Alankrit_Choudh confirmed the issue occurred in both Firefox and Chrome, noting that while previews appeared in the composer, the actual thread posts showed no embed. techAPJ investigated and identified the root cause: a change by Gyfcat where their oEmbed service no longer serves iframe content over secure connections, resulting in a “Mixed Content” error on HTTPS sites. He proposed two solutions: waiting for Gyfcat to fix their service or creating a custom onebox to force HTTPS. techAPJ subsequently reported the issue to Gyfcat via Twitter and received a response. After some time, Alankrit_Choudh confirmed that the onebox functionality was restored and working correctly.

I have the latest update. Gyfcat links do not embed on posts.

http://gfycat.com/FirsthandMeekAfricanaugurbuzzard

Using firefox : i can see the preview in the composer but not in the thread as even discourse is having similar issue from my side at-least.

used http://gfycat.com/FirsthandMeekAfricanaugurbuzzard

1 „Gefällt mir“

Sure @techapj can you have a look?

I also get the same bug on the latest google chrome.

I just looked into it, this issue is only occuring on SSL enabled instances because of a change introduced by Gfycat.

Gfycat is no longer serving iframe content (in oEmbed) over secure connection (HTTPS), hence SSL enabled Discourse instances are giving following error when trying to onebox Gfycat link:

Mixed Content: The page at 'https://meta.discourse.org/t/gyfcat-onebox-bug/35916/3' was loaded over HTTPS, but requested an insecure resource 'http://gfycat.com/ifr/FirsthandMeekAfricanaugurbuzzard'. This request has been blocked; the content must be served over HTTPS.

oEmbed URL: http://gfycat.com/cajax/oembed/FirsthandMeekAfricanaugurbuzzard

The proper fix for this is that Gfycat should be serving iframe over HTTPS. I will try to bring this issue in their notice.

The last option would be to create a custom Gfycat onebox, where I will have to force the Gfycat iframe URL to be served over HTTPS.

2 „Gefällt mir“

With the new update can we onebox gfycat now on HTTPS?

Reported this on Twitter:

–

Will follow up :smile:

3 „Gefällt mir“

Are there any updates on this. I did like the gfycat onebox with discourse

Does it work now? Can you try it?

http://gfycat.com/FirsthandMeekAfricanaugurbuzzard

Yes gfycat has been working good these past few months.

5 „Gefällt mir“