Issue Bug Closed

#67185HSTS vs. preferred protocol

Christoph Schwarzenberg 05/28/15, 22:35 updated 08/29/18, 16:52

Description

Hi,

if one enables HSTS (HTTP Strict Transport Security) on the server and sets the “Use Protocol”*-Setting to HTTP, the visitor gets stuck in an infinite 301-Redirect loop when calling this page.

My TYPO3 installation is deployed via nginx 1.6.2 using php-fpm 5.6.7.
Firefox (v 38.0) sometimes shows an error “The page isn’t redirecting properly”, sometimes, it just keeps following the redirects forever.

The server sends:
@301 Moved Permanently@
@Location: http://<url>@</url>

Firefox tries (because of HSTS) to call https://<url></url>

I am not sure, if there is a fix to this. Maybe analysing get_headers() is an option.

*Edit Page > Behaviour > Use Protocol: Set to http://

Christoph

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.