question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Audit codebase to make sure all relative protocol URLs start with "HTTPS"

See original GitHub issue

We have been using and recommending protocol relative URLs like so:

<script src="//code.jquery.com/jquery-2.2.3.min.js"></script>

This was made popular by: https://www.paulirish.com/2010/the-protocol-relative-url/

But, I believe, this something we should be NOT be doing now on, since the author have long since updated their advice.

More reference: https://jeremywagner.me/blog/stop-using-the-protocol-relative-url/

Hence we need to audit our code-base for such uses, list them here and update the links after confirmation.

Original seen in https://github.com/freeCodeCamp/freeCodeCamp/pull/16488#issuecomment-358730193

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
BerkeleyTruecommented, Jan 19, 2018

I’m for making cdn links explicitly https.

0reactions
tarun7singhcommented, Jan 25, 2018

I have made a PR request to complete this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The protocol-relative URL - Paul Irish
Update 2014.12.17: Now that SSL is encouraged for everyone and doesn't have performance concerns, this technique is now an anti-pattern.
Read more >
The system loads page resources using protocol-relative ...
In our article, we will discuss what kind of URL to use and what to do if the system loads pages only using...
Read more >
Are there cases where Protocol-Relative URLs is preferred ...
It has been widely claimed that Protocol-relative URLs should be completely abandoned in favor of HTTPS; one of my recent pull requests was ......
Read more >
Loads page resources using protocol relative URIs - Sitebulb
This means that the URL in question loads in resources using protocol relative URLs, which can be requested over HTTP and as such...
Read more >
Http-https transitions and relative URLs - Ned Batchelder
When building a web site with HTTPS pages, one of the annoying tasks is to ensure that those pages make no references to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found