Seen this problem keeps coming back there are tons of closed issues about it.
A permanent fix would be great.
My local dev environment we use custom domain names we dont use localhost so I had manually disabled the upgrade to http when this started happening and the setting has no effect all of a sudden.