Сообщения

Сообщения за май, 2022

How to stop an automatic redirect from “http://” to “https://” in Chrome

I n addition to cached redirects, HTTP Strict Transport Security (aka HSTS) may be at play. HSTS is a security feature that forces the browser to use HTTPS even when accessing an HTTP URL. The browser will start using HSTS for a domain after receiving a Strict-Transport-Security header from the server. The browser also ships with a list of domains for which HSTS is enabled by default. In Chrome, there is a way to delete your domain from HSTS after it was added by the server. Though, you can’t exclude domains that are baked in the browser (this includes popular websites and notably everything under the new  .dev  TLD) Go to  chrome://net-internals/#hsts . Enter  example.com  under  Delete domain security policies  and press the Delete button. Now go to  chrome://settings/clearBrowserData , tick the box  Cached images and files  and press click the button  Clear data .