More changes to get the app working correctly with CloudFlare.