When setting up a new TYPO3 installation, TYPO3 should redirect
to the install tool, when accessing the frontend or backend.
This redirect fails since introduction of the trustedHostsPattern
since no configuration is available at this point, while the
request itself is a BE or FE request, which will be denied in this
case.
Solution is to set the REQUEST_TYPE to INSTALL before doing the redirect
to install tool so that creating the redirect is allowed.