Google Chrome redirecting localhost to https

I believe this is caused by HSTS – see http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security If you have (developed) any other localhost sites which send a HSTS header … e.g. Strict-Transport-Security: max-age=31536000; includeSubDomains; preload … then depending on the value of max-age, future requests to localhost will be required to be served over HTTPS. To get around this, I did … Read more

Using Chrome’s Element Inspector in Print Preview Mode?

Note: This answer covers several versions of Chrome, scroll to see v52, v48, v46, v43 and v42 each with their updated changes. Chrome v52+: Open the Developer Tools (Windows: F12 or Ctrl+Shift+I, Mac: Cmd+Opt+I) Click the Customize and control DevTools hamburger menu button and choose More tools > Rendering settings (or Rendering in newer versions). … Read more

Getting Chrome to accept self-signed localhost certificate

For localhost only Simply paste this in your chrome: chrome://flags/#allow-insecure-localhost You should see highlighted text saying: Allow invalid certificates for resources loaded from localhost Click Enable. Other sites Try typing thisisunsafe anywhere on the window, and the browser should let you visit the page. -OR- For a local self-signed cert that avoids arcane commands, specialized … Read more

Disabling Chrome cache for website development

The Chrome DevTools can disable the cache. Right-click and choose Inspect Element to open the DevTools. Or use one of the following keyboard shortcuts: F12 Control+Shift+i Command+Shift+i Click Network in the toolbar to open the network pane. Check the Disable cache checkbox at the top. Keep in mind, as a tweet from @ChromiumDev stated, this … Read more