Skip to content

Commit

Permalink
Updated to AngularJS 1.7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Aioros committed Jun 13, 2019
1 parent 3bb8429 commit 2a8681e
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 8 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# LiveHosts

LiveHosts is a Chrome extension that aims at providing a working (even if sub-obtimal) solution to a common nuisance that many web developers have to deal with every day. If you have multiple versions of your websites sharing the same host names on multiple environments, you often need to switch the assignments in your OS hosts file.
LiveHosts is an extension that aims at providing a working (even if sub-obtimal) solution to a common nuisance that many web developers have to deal with every day. If you have multiple versions of your websites sharing the same host names on multiple environments, you often need to switch the assignments in your OS hosts file.

Other extensions (like the life-saving [HostAdmin](https://chrome.google.com/webstore/detail/hostadmin-app/mfoaclfeiefiehgaojbmncmefhdnikeg)) can help with the cumbersomeness, but changes to the hosts file usually take an inconvenient amount of time to actually affect the browser.

Unfortunately, there is no way to make Chrome direct requests for a hostname to a specific IP without a standard redirect - you could [set up a smart HTTP proxy](https://superuser.com/a/343632), but it's often not possible or not convenient.
Unfortunately, there is no way to make the browser direct requests for a hostname to a specific IP without a standard redirect - you could [set up a smart HTTP proxy](https://superuser.com/a/343632), but it's often not possible or not convenient.

This extension settles for a sub-obtimal approach: requests to the indicated hostnames are redirected to the chosen IPs with an additional `Host` header. The browser's address bar reflects this behaviour showing the hostname right after the IP (e.g. `http://127.0.0.1/www.example.com/`). The extension also tries to take care of all requests to either the IP or the hostname in a consistent way.

You can directly install the extension from the [Chrome Web Store](https://chrome.google.com/webstore/detail/livehosts/hdpoplemgeaioijkmoebnnjcilfjnjdi).

## Issues

After the redirect, the user is effectively in a different domain that the one they expected. They may notice some functional differences:
Expand Down
2 changes: 1 addition & 1 deletion platform/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "LiveHosts",
"version": "1.1.1",
"version": "1.1.2",
"icons": {
"16": "icons/livehosts-16.png",
"48": "icons/livehosts-48.png",
Expand Down
4 changes: 2 additions & 2 deletions platform/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"manifest_version": 2,
"name": "LiveHosts",
"version": "1.1.1",
"version": "1.1.2",
"browser_specific_settings": {
"gecko": {
"id": "livehosts@aioros.net",
"strict_min_version": "42.0"
"strict_min_version": "57.0"
}
},
"icons": {
Expand Down
Loading

0 comments on commit 2a8681e

Please sign in to comment.