Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS support #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

HTTPS support #3

wants to merge 1 commit into from

Conversation

ffub
Copy link

@ffub ffub commented Jun 25, 2013

When a page is served over HTTPS, the module should serve videos that way. Both YouTube and Vimeo support using SSL connections for Oembed.

The protocol should probably defined globally at init rather than the hacky way I have done it within each function.

@ryancramerdesign
Copy link
Owner

Thanks good idea! I have updated this to support https.

@plauclair
Copy link

Hey. I fixed my HTTPS embed problem by changing line 86 to:

86. $embedCode = str_replace('http','https',$data['html']);

My issue came from the fact that OEmbed service only returns http links even if the url that is fed is using https. This gave errors when embedding on https pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants