If Chrome keeps changing a website from http:// to https://, or shows a privacy error after you type the address, the browser may have saved an HSTS policy for that domain. HSTS stands for HTTP Strict Transport Security. It tells a browser to use a secure HTTPS connection whenever it visits a site. In most cases, this protects you from insecure connections—but an outdated or incorrect policy can cause trouble while a website is being repaired or configured.
You can often remove a saved, temporary HSTS policy from Chrome’s internal settings. The steps depend on your Chrome version, and a site on Chrome’s HSTS preload list cannot be fixed by deleting a local setting. This guide explains how to check for HSTS, clear a stored policy, and troubleshoot the problem safely.
What Is HSTS in Chrome?
HTTP Strict Transport Security is a security feature that lets a website tell browsers to connect only over HTTPS. When Chrome receives an HSTS instruction from a site, it remembers the policy for a period of time. If you later enter the site’s HTTP address, Chrome automatically upgrades the connection to HTTPS rather than loading the unencrypted version.
A website sends an HSTS policy in an HTTPS response using the Strict-Transport-Security header. The policy can include a duration, such as one year, and may apply to subdomains as well. Once Chrome has saved the instruction, it can continue enforcing HTTPS even if you enter an HTTP address yourself.
HSTS is not the same as a saved password, cookie, or ordinary browsing-history entry. That is why deleting cookies or clearing your browsing history may not remove the policy. HSTS also does not make a website’s certificate valid; Chrome still checks the certificate and may block access if it is expired, misconfigured, or issued for a different domain.
When Should You Clear an HSTS Setting?
Consider checking or clearing a saved HSTS policy if you own or administer a website and have changed its HTTPS configuration, or if a domain is incorrectly forcing HTTPS after its certificate has been removed. It can also help during development when a test site previously sent an HSTS header and no longer supports HTTPS.
Before clearing the setting, make sure the problem is actually related to HSTS. If Chrome displays a certificate warning, the underlying issue may be an expired certificate, an incorrect server configuration, a captive Wi-Fi login page, or a network security product intercepting traffic. Removing HSTS does not repair any of those problems. Do not bypass a certificate warning for a site that handles passwords, payments, or personal information.
How to Clear HSTS Settings in Chrome
Chrome has traditionally provided an internal page for viewing and deleting locally stored HSTS policies. The page’s availability and layout can vary between Chrome versions, so use the following steps if the HSTS controls are present.
- Open a new Chrome tab.
- Enter
chrome://net-internals/#hstsin the address bar and press Enter. - Find the section labeled Delete domain security policies.
- Enter the domain name only—for example,
example.com. Do not includehttps://, a path, or a trailing slash. - Select Delete.
- Close and reopen the affected site, then check whether Chrome’s behavior has changed.
If the page includes a section for querying a domain’s HSTS policy, you can enter the hostname there first and select Query. This may show whether Chrome has a dynamic policy for that host or whether a policy comes from a preload list. Query results can help identify the cause, but the exact labels and information shown may differ by Chrome release.
If the site uses subdomains, the policy may apply to more than the exact hostname you first entered. For example, a policy saved for example.com with the includeSubDomains directive can also affect shop.example.com. Try removing the policy for the parent domain as well as the specific subdomain, where Chrome allows it. Be careful not to remove policies unnecessarily for domains you do not control.
What If the HSTS Page Is Unavailable?
Some Chrome versions may change, limit, or remove parts of the internal networking page. If chrome://net-internals/#hsts does not open, or it opens without the deletion controls, first update Chrome and restart it. You can check for updates from Chrome’s menu under Help and then About Google Chrome. Updating may not restore a missing control, but it ensures you are using a supported browser version.
Chrome does not provide a dependable HSTS-specific control in the ordinary browsing-data screen. Clearing cookies, cached images, or browsing history may not delete a stored HSTS policy. If the internal HSTS controls are unavailable, try the following checks before taking more disruptive steps:
- Confirm that you entered the correct hostname, including whether the site uses
www. - Test the site in another browser to see whether the issue is specific to Chrome.
- Check the website’s certificate and HTTPS configuration, especially if you manage the site.
- Restart Chrome and your device, then try again.
- If the problem affects only one Chrome profile, test with a new profile. This helps identify whether the issue is tied to profile data, but it is not a targeted HSTS deletion method.
Removing a Chrome profile or resetting the browser can affect bookmarks, extensions, settings, and other local data. Back up or sync important information before using either option. A new profile is best treated as a diagnostic test, not the first solution.
Why Clearing Cookies or Cache May Not Work
Cookies and cached files are stored for site functions and faster loading. HSTS is a separate security policy that Chrome uses to decide whether a connection must use HTTPS. As a result, clearing cookies and cached images does not necessarily clear the HSTS record.
You can still clear site data if you are troubleshooting a login, a broken page, or outdated website content. Open Chrome’s settings, go to Privacy and security, and select the option for deleting browsing data or managing site data. Just do not assume that this action has removed HSTS. You may need the HSTS deletion control, or the website owner may need to fix the server configuration.
Dynamic HSTS Policies and the Preload List
There are two important sources of HSTS behavior. A dynamic policy is learned when Chrome visits a site that sends an HSTS header over HTTPS. If Chrome’s HSTS page offers a delete control and the policy is stored locally, removing that entry may stop the browser from enforcing the saved rule until it receives another policy.
A preloaded policy is different. Some domains are included in a list distributed with browsers, so Chrome knows to require HTTPS even before it has visited the site. Deleting a local policy does not remove a domain from Chrome’s preload list. If a domain is preloaded, clearing local browsing data or creating a new Chrome profile generally will not make Chrome load it over HTTP.
For a site owner, the long-term fix is to configure HTTPS correctly and maintain a valid certificate. If the domain was submitted to the HSTS preload list by mistake, the owner must follow the list’s removal process. Changes can take time to reach browsers, and removing a domain from a preload list is not an instant workaround for visitors. Avoid trying to access sensitive websites over HTTP while waiting for a correction.
Common HSTS Troubleshooting Mistakes
- Entering the full URL: The HSTS deletion field expects a hostname, not a URL with a protocol or page path.
-
Deleting only one hostname: A separate
wwwaddress or a parent-domain policy may also affect the site. - Expecting cookies to control HTTPS: Cookies and HSTS policies are separate types of browser data.
- Assuming HSTS caused every privacy warning: Certificate errors and network problems need to be investigated directly.
- Trying to clear a preload entry locally: A preloaded domain requires a change to the preload list, not just a browser-data cleanup.
- Disabling browser security: Do not use flags, extensions, or command-line options that weaken HTTPS protections as a routine fix.
How to Prevent HSTS Problems on Your Website
If you manage a website, test HTTPS thoroughly before sending a long-lived HSTS policy. Confirm that the certificate is valid for the correct domain, that HTTPS works across the site, and that every intended subdomain supports secure connections before enabling includeSubDomains. Use a short testing duration first, then increase it after verifying the configuration.
Be especially cautious before requesting HSTS preloading. Preloading can make HTTPS enforcement persistent for visitors, even before they have visited your site. Check that all subdomains are ready and that your team can maintain certificates and HTTPS configuration over time. HSTS is valuable when implemented correctly, but mistakes can make a site difficult to reach.
Conclusion
To clear a locally saved HSTS setting in Chrome, open chrome://net-internals/#hsts, enter the hostname under Delete domain security policies, and select Delete—if your Chrome version provides that control. Then test the site again. If the control is missing, remember that clearing cookies or cache may not remove HSTS, and a new profile is only a troubleshooting test.
If Chrome still forces HTTPS, the domain may be on the HSTS preload list, the server may be sending a fresh HSTS header, or the site may have a certificate problem. For a preloaded domain, only the site owner’s correction to the preload status can resolve the issue permanently. Keep HTTPS protections enabled and investigate the certificate or website configuration rather than bypassing Chrome’s security warnings.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.