delete automatic redirect to https in Chrome: localhost

Diese Seite gibt es auch in Deutsch

When calling a test page without HTTPS on localhost I recently had the following phenomenon: http://localhost was redirected to https://localhost: The test page could no longer be displayed.

The cause is a page previously called with HSTS: The browser remembers the redirect and executes it consistently, even if the current test page does not use HSTS at all.

HSTS, what is it?

HSTS stands for HTTP Strict Transport Security and is a header that is delivered by the web server to tell the browser that from now on the page can only be called via HTTPS. Usually a relatively long time span of several months is given as expiration date. Within the time span, the browser is supposed to redirect HTTP to HTTPS, even if the header is no longer delivered.

(look into the Chrome developer tools key F12)

Delete domain security policies

The following hidden URL can be used to delete the HSTS cache:


positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-08-12 from Bernhard

Top articles in this section

Ping with Port | cmd vs. PowerShell: Test-Netconnection
As is well known, the tool ping can be used to test the access to a certain network device and its response time. Not all devices will respond to a ping, but they may respond to a particular Tcp-Port if a particular network service is provided through it. Windows PowerShell allows you to test a specific port using Windows board tools. The psping tool can also measure the response time to a specific port.

OpenWRT hardware recommendation - available devices 2022
OpenWRT provides a uniform and up-to-date software for different network devices like routers or access points and delivers countless additional setting options, software packages and functions. This makes it possible to combine new and old devices from different manufacturers and, among other things, to use low-cost hardware in a common WiFi, see: Setting up a home network: Extending LAN and WLAN | Improving.

Find IP addresses in the network even if their firewall is enabled
If you want to get a quick overview of all active devices in a network, you can do this with network discovery, commands in the command prompt, in PowerShell or with special IP scanners. The PowerShell commands presented at the beginning of this post give a quick overview of all devices on the local network and may make special programs for scanning the network unnecessary. For expanding your own network, see also: Set up network for home: Expand and improve your LAN / Wi-Fi.

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details