Read more

Let the browser choose the protocol

Deleted user #6
November 05, 2013Software engineer

You should deliver all web content over https. In 2021 browsers are displaying increasingly obtrusive warnings when content is delivered over http.

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the page is delivered with.

Example issues

  • When your page is delivered via https and you provide a youtube video only via http the most browsers (e.g. Firefox, Chrome) won't display the video.
  • When you deliver your youtube video via https://youtu.be/jyElDp98HdI your test which checks that the embeded video is rendered in the view will fail because your test server doesn't use https

Solution

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Let your links look like //youtu.be/jyElDp98HdI and you will be fine, server side and test side.

Posted to makandra dev (2013-11-05 17:19)