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

Twitter Widget Doesn't Work Over SSL #9

Open
dalezak opened this issue Dec 6, 2013 · 7 comments
Open

Twitter Widget Doesn't Work Over SSL #9

dalezak opened this issue Dec 6, 2013 · 7 comments

Comments

@dalezak
Copy link

dalezak commented Dec 6, 2013

The Twitter widget is broken when used on website with SSL.

twitter_widget

@dalezak
Copy link
Author

dalezak commented Dec 6, 2013

[blocked] The page at [website address] was loaded over HTTPS, but ran insecure content from 'http://platform.twitter.com/widgets.js': this content should also be loaded over HTTPS.

@dalezak
Copy link
Author

dalezak commented Dec 6, 2013

Looks like the problem is due to hardcoded http://platform.twitter.com/widgets.js path, which should instead use the protocol of the host.

https://github.com/iffyuva/social-buttons/blob/master/lib/social_buttons/view_helpers/tweet.rb#L39

@kristianmandrup
Copy link
Collaborator

Please fix whatever needs fixin and make a pull request :)
One option is to add a configuration singleton class to be used by all the social buttons ;)

@dalezak
Copy link
Author

dalezak commented Dec 6, 2013

Hmm, do you need to increment the version number so the gem will be updated?

@dalezak
Copy link
Author

dalezak commented Dec 6, 2013

After doing bundle update, I'm still getting social-buttons 0.3.7 which still has http:// rather than https://

Any ideas?

@kristianmandrup
Copy link
Collaborator

Just reference the repo directly from your gemfile. Yes, the version needs to be bumped and then pushed to RubyGems as a new release.

@kristianmandrup
Copy link
Collaborator

Please also add my Config class to the repo and make a new pull request.

#10 (comment)

I'm at work where I can't really do git commands :(

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

No branches or pull requests

2 participants