Be sure that you’ve configured your reverse proxy according to the directions in the Jenkins documentation. Check every line of configuration.
The message, “The frontend sent an unexpected list of classes” , is usually associated with one or more installed plugins that have not been updated for the Jenkins 2.277 configuration form modernization. Detailed instructions are available in another community.jenkins.io page.