brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: chrome://net-internals can make Chrome forget a site's HSTS rule

Chrome
~/tips/tip-chrome-delete-hsts-domain

chrome://net-internals/#hsts

Reach a test site over plain HTTP again after Chrome insisted on HTTPS.

You tried HTTPS on a test host, the server sent an HSTS header, and now Chrome rewrites every http:// address to https:// even though the certificate is long gone. Chrome keeps that rule in its own list, and you can remove a single entry.

Open:

chrome://net-internals/#hsts

Under Query HSTS/PKP domain, type the host name, for example test.example.com, to see whether Chrome has a rule for it. Then enter the same name under Delete domain security policies and click Delete. Try the HTTP address again.

If the rule came from a parent domain with subdomains included, delete it for that parent domain as well.

Two things will stop this from working. Chrome cannot delete preloaded entries, the ones that ship inside the browser, and some whole endings such as .dev are on that list. And if the server still sends the Strict-Transport-Security header on its next HTTPS response, the rule comes straight back, so fix the server config first. I would only do this for hosts you run yourself; on someone else’s site the rule is there to protect you.

Further reading: Chromium: HTTP Strict Transport Security

Going deeper: Run degoog on Unraid as your own search page, compared with SearXNG and 4get

More Chrome tips chrome://net-export/ google-chrome --user-data-dir=/tmp/chrome-clean --no-first-run Windows and Linux: Ctrl+Shift+A Settings > Search engine > Manage search engines and site search > Site search > Add chrome://version All Chrome tips (12) All topics

Link