title: Get Cypress to resolve redirects before determining if the requested URL is a second unique domain
body: <p>Let's assume I got <code>"baseURL" : "https://www.example.com"</code>.</p>
  
  <p>I also have an htaccess redirect in place to 301 requests from http to https.</p>
  
  <p>If I try to <code>cy.visit(/about)</code>, I will get:</p>
  
  <blockquote>
    <p>CypressError: cy.visit() failed because you are attempting to visit a second unique domain.</p>
  </blockquote>
  
  <p>I can't change the URL manually as it's being passed to Cypress as a results of parsing the site's navigation.</p>
  
  <p>I understand that Cypress is trying to warn me that I am leaving the domain by switching protocol, which it should do as this could cause all sorts of session related issues.</p>
  
  <p>However, since I am redirecting back into the right protocol I am looking for a way to tell Cypress to resolve the redirect before deciding if it should trigger the error.</p>
  
  <p>I can work around the problem with a hack like checking the URL I am passing to <code>cy.visit()</code> matches the <code>baseURL</code> protocol but I'd prefer not to as this would then obscure issues such as the redirect being removed for whatever reason and users loosing their sessions as they move from https to http.</p>