When I pass an URL to load a website, say, http://yoururl.com
, it redirects to https://yoururl.com
I mean, passing an URL with HTTP automatically redirects as https://yoururl.com
in the browser URL.
@driver.get("http://yoururl.com")
Browser used: Chrome
Is there a way to stop redirecting the HTTP url as HTTPS?
The Chrome 63 and above versions will no longer take HTTP
with domain .dev
since you are in the local/dev
environment.
https://iyware.com/dont-use-dev-for-development/
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 https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/