S
S
Sergey2015-09-20 10:36:00
Google Chrome
Sergey, 2015-09-20 10:36:00

Why does Chrome redirect from http:// to https://?

Why does Chrome redirect from http:// to https:// when starting a local http server? (gulp-connect)
And it only redirects in one project (even if you use http-server node instead of gulp-connect)
PS OS: Debian 8
Browser: Chromium 41.0.2272.118 (Build for developers) Built on 8.0, running on Debian 8.0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-09-21
@DrMGC

The problem was in the following line:

//Если не локально и не из VK, но по http, то перескочить на https. Ибо нефиг!
....
location.href=location.href.replace('http://','https://');

P
Pavel Bogdanov, 2015-09-20
@rebirther23

And the project itself, which you open, cannot redirect to https?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question