InvalidSyntax
InvalidSyntax

Reputation: 9509

Prevent Chrome from redirecting to https on certain domains?

I am using Laravel valet to host websites on my local machine for dev using the *.app domain. Whenever I try to visit URL's using Chrome they get redirect to the https version (which i do not want). How can I alter this behaviour for my local websites?

Upvotes: 0

Views: 4160

Answers (2)

Mehdi
Mehdi

Reputation: 1485

It is not possible to prevent this behavior on Chrome, however it is possible for Firefox. You have no choice than having an alternative solution.

Via this article:

  1. In Firefox, visit about:config via the address bar
  2. Search for the parameter network.stricttransportsecurity.preloadlist
  3. Change it’s value to false

Upvotes: 0

ReyAnthonyRenacia
ReyAnthonyRenacia

Reputation: 17651

This seems to be the intended behavior since the Chrome 63 update took place. This blog talks about .dev but this is also happening to .app apparently.

tl;dr: Chrome 63 (out since December 2017), will force all domains ending on .dev (and .foo) to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) header.

This adds the following line to Chromium's preload lists;

{ "name": "dev", "include_subdomains": true, "mode": "force-https" },
{ "name": "foo", "include_subdomains": true, "mode": "force-https" },

Upvotes: 0

Related Questions