Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google chrome Gets blocked when HTML redirection starts to loop recursively #7

Open
BoQsc opened this issue May 9, 2020 · 3 comments

Comments

@BoQsc
Copy link
Contributor

BoQsc commented May 9, 2020

https://stackoverflow.com/questions/4954768/automatic-redirection-to-https

@BoQsc
Copy link
Contributor Author

BoQsc commented May 9, 2020

The only non javascript solution is to force Github to encforce HTTPS

@BoQsc
Copy link
Contributor Author

BoQsc commented May 9, 2020

Huge downside after enabling HTTPS enforcement for the repository:

curl vaido.world|cmd
Microsoft Windows [Version 10.0.18363.720]
(c) „Microsoft Corporation“, 2019. Visos teisės ginamos.

C:\Users\Juozas>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    162      0  0:00:01 --:--:--  0:00:01   941
<html>

C:\Users\Juozas><head><title>301 Moved Permanently</title></head>

C:\Users\Juozas><body>

C:\Users\Juozas><center><h1>301 Moved Permanently</h1></center>

C:\Users\Juozas><hr><center>nginx</center>

C:\Users\Juozas></body>

C:\Users\Juozas></html>

C:\Users\Juozas>
C:\Users\Juozas>

@BoQsc
Copy link
Contributor Author

BoQsc commented May 9, 2020

The only true solution appears to be .htaccess redirection to https protocol,
or backend solutions. It is possible to do with JavaScript, but JavaScript is known to be disabled, unused due to safety concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant