Asia

SWF_FU gem gives warning on HTTPS

Tudip

24 June 2016

OK, you got this fancy gem integrated into your project to show all sort of video content and as you are nearing the launch you moved to HTTPS. Everything worked fine but HTTPS gives this warning that “Non-secure content is served from HTTPS” and you are clueless how to fix this problem.

Please read Marc’s comment below about the fix in 2.0.4!!

First the cause: 
It is because there is an image “get_flash_player.gif” that this gem internally adds so that users can click on that link to upgrade/install Flash Player. As this image is coming from an HTTP URL instead of HTTPS, you are seeing this problem.

Now the solution: 
Go to https://github.com/marcandre/swf_fu/blob/master/app/models/swf_fu/generator.rb
You would notice that at line # 10 it is giving image src with HTTP. This is what is causing this issue.
Now you can fix this problem by,

 

Restart the server and reload the page. You would notice that annoying security warning is gone now.

Tudip Technologies

Tudip Technologies is a value-driven Software Services company. We deliver excellence in dedicated and business-centric web solutions incorporated with innovation and expertise as the tools to achieve business goals. Our high-quality, cost-effective, reliable, and scalable services have helped us build an enduring relationship with our clients and customers.

Latest Posts

  • All Posts
  • Casestudy
  • Cloud
  • Healthcare
  • Ios
  • IOT
  • Java
  • Manufacturing
  • News
  • OTT
  • Supply Chain
  • Support and Maintainance
    •   Back
    • Banking

Related Posts

  • All Posts
  • Healthcare