proxy sjc [error][PU01] client problem: invalid authority

The error is caused by the addition of explicit Host Authorization handling in Sinatra 4.1.0. It is implemented as a Rack middleware, bundled with rack-protection, but not exposed as a default nor opt-in protection:

Settings to be tweaked:

And an example: