Issue Feature Closed

#88380Basic auth options for PageContentErrorHandler

Christian Eßl 05/17/19, 09:45 updated 02/24/20, 10:03

Description

The custom PageContentErrorHandler in TYPO3 9.5 works great, but depending on the environment, there can be a basic auth set for the website (like on a staging server). The PageContentErrorHandler is using guzzle with an empty options array to fetch the configured 404 page. With basic auth set, this will always throw a runtime exception, because guzzle coudn’t fetch the page.

So it would be great to be able to configure basic auth options for the PageContentErrorHandler per environment.
Or maybe this would be a possible configuration option for the “variants” array in the site configuration?

Reviews 0

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