Answer the question
In order to leave comments, you need to log in
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
The problem was in the following line:
//Если не локально и не из VK, но по http, то перескочить на https. Ибо нефиг!
....
location.href=location.href.replace('http://','https://');
And the project itself, which you open, cannot redirect to https?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question