-
Notifications
You must be signed in to change notification settings - Fork 107
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
Not working on server with SSL #67
Comments
The demo is not working in https because it makes a http XHR request which is considered insecure. You can see the console error message in chrome. How do you call LinkThumbnailer in your rails project? |
message.rb
thumbnails_controller.rb
link_thumbnailer.rb
|
I imagine you call the thumbnail endpoint using javascript ajax request? Do you use https there? |
No, I call it from Message model. Here. If link from youtube, attacment is not created. But from Vimeo it works
|
Really not sure what could be wrong here. Seems to be working fine with |
Hi guys!
I use Link Thumbnailer gem (v. 3.0.2) in my app (Rails 4.2.3, ruby 2.2.2p95). Recently I encountered a problem. On localhost Link Thumbnailer works fine. But I have staging and production servers with ssl where it does not work ( youtube link, for example: http://www.youtube.com/watch?v=6Viyt2aIOG8 ). At first I thought that configurations of my server are wrong or my code has bugs. But I checked everything over and over again. There are no bugs. I checked it in your demo http://link-thumbnailer-demo.herokuapp.com. It works fine. But when I changed link from http://link-thumbnailer-demo.herokuapp.com to https://link-thumbnailer-demo.herokuapp.com it stopped working too like in my app. Could you help to solve this problem please?
Thanks, best regards.
The text was updated successfully, but these errors were encountered: