Happened to our site too. Check your server logs. We discovered that there’s a dependency on Apache’s headers module so you must ensure that’s enabled. Note that the docker image wordpress:6.2-php8.2-apache (which is quite recent) does NOT have this module enabled. You can add the following to your Dockerfile to enable the module:
RUN cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/