Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Allow HTTP scheme for localhost URLs #423

Merged
merged 1 commit into from
Jul 4, 2018

Conversation

astorije
Copy link
Contributor

In my experience, localhost URLs are almost exclusively used for development purposes, and setting up HTTPS for localhost URLs is really tedious, and most of the time unnecessary.

Note that I'm not completely sure of the syntax, so let me know if I'm wrong! The : at the end is on purpose to make sure all ports are allowed. I don't think it's worth the effort to allow http://localhost/ without a port specifically, but let me know.

screen shot 2018-04-19 at 17 59 29

(On an unrelated note, I suggest removing http://examples.com, it seems like a semi-real domain, and it's not part of https://en.wikipedia.org/wiki/Example.com / https://tools.ietf.org/html/rfc2606#section-3)

In my experience, localhost URLs are almost exclusively used for development purposes, and setting up HTTPS for localhost URLs is really tedious, and most of the time unnecessary.
@msftclas
Copy link

msftclas commented Apr 19, 2018

CLA assistant check
All CLA requirements met.

@JoshuaKGoldberg
Copy link

SGTM, thanks for the add!

I personally work in a setup that does care about the difference, but I agree that in the majority of cases, this is fine.

If you could send another PR for the examples removal that'd be great! I can if you don't have the time.

@JoshuaKGoldberg JoshuaKGoldberg merged commit f876278 into microsoft:master Jul 4, 2018
@astorije astorije deleted the patch-1 branch July 4, 2018 04:32
@astorije
Copy link
Contributor Author

astorije commented Jul 4, 2018

If you could send another PR for the examples removal that'd be great! I can if you don't have the time.

No worries, done in #449, thanks for reaching out! ❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants