e.preventDefault(); // Prevent form submission input.blur(); // remove focus input.value = ""; // optional: clear the input

SWF_FU gem gives warning on HTTPS

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.

Related Posts

Latest Posts

  • All Posts
  • Generative AI
  • manufacturing
  • News
  • Portfolio
    •   Back
    • Android
    • iOS
    • Java
    • PHP
    • MEAN
    • Ruby
    • DotNet
    • IoT
    • Cloud
    • Testing
    • Roku
    • CMS
    • Python

India

Plot No. 11/2, Phase 3, Hinjewadi Rajiv Gandhi Infotech Park, Pune, India – 411057.
info@tudip.com
+91-96-8990-0537

United States

1999 S. Bascom Ave Suite 700, Campbell CA. 95008, USA.
info@tudip.com
+1-408-216-8162

Canada

64 Caracas Road North York, Toronto Ontario M2K 1B1, Canada.
info@tudip.com

Mexico

Calle Amado Nervo #785 Interior B Colonia Ladron De Guevara 44600 Guadalajara, Jalisco, Mexico.
info@tudip.com

Colombia

Cra. 9 # 113-53 Of. 1405 Bogotá D.C., Colombia.
info@tudip.com

UAE

Tudip Information Technologies L.L.C Office No 109, ABU HAIL BUILDING 13, Abu Hail, Dubai, UAE.
info@tudip.com

Nigeria

22 Kumasi Crescent, Wuse 2, Abuja, Nigeria.
info@tudip.com