There is no way to set some script before navigating to the configured url. This means, that there is no way to set extra headers (i.e. authentication) before navigation.
We should implement beforeNavigationScript and afterNavigationScript configuration to be able to perform said actions.