Website Uses HSTS: Why Chrome Won't Let You In and How to Fix It
You typed an address, or clicked a link from an email, and instead of the site you got a wall of red text: "You cannot visit [site] right now because the website uses HSTS." No "Advanced" link. No "Proceed anyway" button. Just a dead end. If a website uses HSTS and something about its certificate is off, Chrome refuses to let you through, full stop, and that refusal is by design rather than a bug you stumbled into.
This walkthrough is for two different people who land on this same error. One of you is a visitor who just wants back into a site and needs to know the difference between a fix that actually works and one that only feels like it worked. The other is a site owner who just changed a certificate, added a subdomain, or moved hosts, and now their own visitors are getting locked out. Both paths get covered here, in order, so read the section that matches you and skip the rest.
Before you start: visitors need nothing more than the browser they're already using (Chrome, Edge, or Firefox all handle this slightly differently, and that's covered below). Site owners need access to their hosting control panel or server, and ideally the ability to check their current certificate and HTTP response headers.
How to Fix the "Website Uses HSTS" Error
Why Chrome blocks you with no way to click through
Here's the mechanism, in plain terms. At some point, your browser visited this site over HTTPS and received a response header called Strict-Transport-Security. That header is the site telling your browser, "from now on, only ever connect to me over HTTPS, never plain HTTP, for the next X days." Your browser wrote that instruction down. Think of it as a sticky note the browser leaves for itself: next time you type this address, skip HTTP entirely and go straight to HTTPS.
That sticky note is HSTS, short for HTTP Strict Transport Security. It's a real header that a site can only set over a genuine HTTPS connection in the first place (a copy sent over plain HTTP is ignored, which matters later in this article). This piece assumes you already know the basics; if you want the fuller explainer first, our guide to what HSTS is and how it works covers that ground.
Now here's the part that trips people up. Your browser holds up its end of that sticky-note promise even when something is wrong with the site's certificate: expired, mismatched, self-signed, whatever the specific fault is. Normally, a bad certificate gives you a warning page with an option to click through anyway.
Not here. The governing standard, RFC 6797, spells this out directly: when a browser is connecting to a domain it knows uses HSTS, and the secure connection has any error at all, the browser "MUST terminate the connection." No exceptions carved out for a curious user who wants to proceed regardless.
You can read the exact clause in RFC 6797, Section 8.4. This is a security decision, not an oversight, and understanding that up front will save you from hunting for a bypass button that was never going to exist.
Is this the same as "HSTS missing from HTTPS server"?
Quick detour, because the wording is easy to confuse. If you landed here searching for "hsts missing from https server," you're actually dealing with the opposite situation. That phrase shows up in vulnerability scanners and security audit tools, and it flags a site that is not sending the HSTS header at all, which is a weakness, not a lockout.
This article is about a browser refusing to connect because a site already sent HSTS and something else broke. If you're a site owner trying to add HSTS correctly in the first place rather than troubleshoot a lockout, our header checker will tell you exactly which of your headers are missing or misconfigured, HSTS included.
What usually causes this block
A handful of causes account for almost every instance of this error, and knowing which one applies to you shapes which fix path you take next.
- An expired certificate, or one that isn't valid yet because a server's system clock is wrong. Clock skew sounds minor. It isn't; a certificate valid from Tuesday looks invalid to a server whose clock still thinks it's Monday.
- A certificate that doesn't cover the exact hostname being visited, especially common when a site's HSTS policy includes
includeSubDomainsbut a new subdomain was launched with a certificate that forgot to list it. - A broken certificate chain, where the server sends its own certificate but not the intermediate certificate that links it back to a trusted root, the way browsers validate TLS trust in the first place.
- A self-signed or internal certificate, common on staging environments, internal admin panels, and appliances, where the browser already learned an HSTS policy from an earlier HTTPS visit and now refuses the untrusted cert outright.
- An intercepting corporate proxy or VPN that swaps in its own certificate mid-connection, which the browser correctly treats as suspicious for an HSTS-protected domain.
If you're a visitor: the temporary fix
First, a word on the thing almost everyone tries before finding this article: clearing cookies and cache through Chrome's "Clear browsing data" screen. It won't touch this problem. HSTS state lives in a completely separate store from your general browsing history, so clearing the usual stuff leaves the sticky note fully intact. That's the single most common source of frustration reported around this error, and it's worth knowing upfront so you don't waste ten minutes on something that was never going to work.
The actual local workaround, the one people usually mean when they search "hsts chrome" or ask how to clear HSTS in Chrome, lives at Chrome's internal HSTS management page. Here's how to use it.
- Open a new tab and type
chrome://net-internals/#hstsinto the address bar, then press Enter. You should see a page titled "HSTS/PKP Domain Security Policy" with a section near the bottom labeled "Delete domain security policies." If instead you get a blank page or "This site can't be reached," you're likely on Chrome for Android or iOS; mobile Chrome does not expose internalchrome://pages at all, and this workaround simply isn't available there. Skip to trying a different network or waiting for the site owner to fix the certificate. - In the "Delete domain security policies" box, type the exact domain that's blocking you (for example,
example.com, nohttps://prefix), then click Delete. You should see no error message and the field clears. If nothing visibly changes and the site still blocks you afterward, the domain may be on Chrome's built-in preload list rather than stored locally from a header your browser received, which the next paragraph explains. - Fully restart Chrome, not just the tab. Closing all windows and reopening usually works, though on some systems Chrome keeps running in the background; check your taskbar or system tray for a lingering Chrome icon and quit it there too. Then revisit the site. You should get through, or at minimum see a normal certificate warning with a way to proceed instead of the flat "cannot visit" wall. If you still see the exact same error with no option to continue, move to the preload check below before trying anything else.
One catch worth knowing before you get frustrated: Chrome's HSTS store actually holds two different kinds of entries. A dynamic entry is one your browser learned from a header the site itself sent, and that's the kind step two above can delete. A static, or preloaded, entry is one baked directly into Chrome's code at build time, shipped as part of the browser itself for a list of domains that asked to be permanently protected.
The delete button in net-internals has no effect on those. If your domain is preloaded, local deletion silently does nothing, no error, no confirmation, it just doesn't work, and the only real removal path is a formal request through Chromium's own process, which our guide to the HSTS preload list walks through if that's the situation you're in.
Different browser, different steps. Firefox stores its own equivalent HSTS state and offers a shortcut: open History, right-click the site, and choose "Forget About This Site," which clears HSTS along with other stored data for that domain. Edge, being Chromium-based like Chrome, uses the identical internal page at edge://net-internals/#hsts with the same delete-and-restart steps.
Keep one thing in mind about any of these steps: they're a workaround, not a repair. You're only erasing your own browser's memory of the policy. If the site's certificate is still broken, the very next time it sends that HSTS header your browser will simply relearn the block, and you'll be right back here.
That's fine if you just need one visit through while the site owner sorts things out on their end. It's not a real solution if the underlying certificate problem never gets fixed.
If you're the site owner: the permanent fix
If it's your own domain locking out visitors, clearing your personal browser's HSTS cache accomplishes nothing for anyone else. Every visitor who previously loaded your HTTPS site with a valid certificate has now stored their own dynamic HSTS entry, and each of their browsers will keep blocking them individually until you fix the actual server-side problem. Speed matters more here than with an ordinary certificate warning, because there's no click-through waiting for them, just a closed door.
- Run your domain through the securityheaders.tools checker and load the site directly in a browser to see the exact certificate error text. You should get a specific reason (expired, name mismatch, untrusted issuer, incomplete chain). If the checker itself can't reach your site at all, your HTTPS setup may be broken at a more basic level than HSTS, and that's the first thing to resolve.
- Match the reported cause to its fix. An expired certificate gets renewed through your certificate authority or hosting provider. A missing intermediate certificate gets fixed by installing the full chain your CA provides, not just the leaf certificate. A hostname mismatch under
includeSubDomainsmeans either issuing a certificate that covers the new subdomain or temporarily droppingincludeSubDomainsfrom your HSTS header until that subdomain is ready. A wrong server clock gets corrected at the OS or NTP configuration level. You can confirm the exact live headers your server is sending with a sister tool, httpcheck.tools, which shows the raw response including your current Strict-Transport-Security value. - Once the certificate itself is valid, rebuild your HSTS header correctly using the header generator, which produces a clean directive for Apache, nginx, Caddy, Cloudflare, Netlify, or Vercel and automatically catches common contradictions, like requesting preload without the required one-year max-age. Deploy it, then reload your site fresh (an incognito or private window skips your own stored HSTS state) to confirm the padlock shows a valid certificate with no warnings.
A real-world version of this shows up constantly with internal tools: admin panels, staging servers, and appliances running self-signed certificates. Broadcom's own knowledge base documents exactly this pattern for one of their appliance interfaces, where a browser that previously loaded the panel over a trusted HTTPS connection later gets locked out once the certificate reverts to self-signed. If that matches your situation, either install a properly signed certificate on the internal tool or keep HSTS off internal-only domains where a self-signed certificate is the norm rather than a mistake. The full case is documented in Broadcom's support article on the issue.
Frequently Asked Questions
Why does Chrome say the website uses HSTS?
Chrome shows this message because your browser previously received (or came pre-shipped with) an HSTS policy for that domain, and it's now detecting a certificate or connection error on a fresh visit. Under RFC 6797, once a browser knows a domain uses HSTS, it's required to terminate the connection outright rather than offer a warning page with a way through, which is why this particular error skips the usual "Proceed anyway" option entirely.
How do I clear HSTS for a domain in Chrome?
Open a new tab, go to chrome://net-internals/#hsts, type the exact domain into the "Delete domain security policies" box, click Delete, then fully restart Chrome before revisiting the site. This only works for dynamic entries your browser learned from a header; if the domain is on Chrome's built-in preload list, the delete action won't remove it, and there's no local workaround for that case. Also note this page doesn't exist on mobile Chrome, so the fix isn't available on Android or iOS.
How do I fix the HSTS error as the site owner?
Start by confirming the exact certificate problem with a checker like securityheaders.tools or a direct browser visit, since the fix depends entirely on the specific cause: renew an expired certificate, install a missing intermediate certificate to complete the chain, extend certificate coverage to a subdomain caught by includeSubDomains, or correct a wrong server clock. Once the certificate itself checks out, rebuild your HSTS header with a tool like our header generator so it's sent correctly going forward, since clearing your own browser's HSTS cache does nothing for the visitors who are already locked out.
Can I bypass the HSTS error safely?
No, not by design. RFC 6797's Section 12.1 spells this out explicitly under the heading "No User Recourse": a site that sends an HSTS policy is deliberately opting into a no-click-through model, because letting users click past certificate warnings on a domain they've told their browser to trust is, in the standard's own words, "a recipe for a man-in-the-middle attack." Clearing your local HSTS entry through chrome://net-internals/#hsts isn't really a bypass either, it doesn't verify the certificate is trustworthy, it just erases your browser's memory of the policy. Only do that on a domain you control and are actively fixing, or one where you're confident the cause is something harmless like clock skew, never as a way to push past a warning on a site you don't otherwise have reason to trust. If you'd like to confirm real users hit and resolved this same error the standard way, Google's own support forum has a documented thread worth reading: Unable to Visit Websites Using HSTS.