More stringent checks for ajax config.