Ticket #1870: Option to enable HTTP authentication only on headless testing