title: API mocking in cypress intercept
body: <p>I am new to cypress.
  Problem: I am not able to intercept url for API mocking, when there are multiple APIs are appearing in console-&gt; network tab</p>
  <p>Description: My requirement is as follows:</p>
  <ol>
  <li>login a website, after getting the landing page,go to a particular webpage, select multiple test cases check boxes</li>
  <li>open console-&gt; network tab , and click run</li>
  <li>watch multiple APIs are coming</li>
  <li>I selected one API url among them. I want to mock this particular one.
  'GET'method , url (say: <code>https://externalAPIurl</code>) are copied in the following code</li>
  </ol>
  <pre><code>//verify landing page is reached
  cy.contains(&quot;this is landing page&quot;).should(&quot;exist&quot;);
  
  //after login open testcase page
  
  cy.visit(
    &quot;https://example.com/testcases&quot;
  );
  
  //go to test suite tab test suite
  cy.get(&quot;#testsuiteid&quot;)
    .click();
   //click test suite name 
  cy.contains(&quot;testsuitename&quot;).click();
  
  // select all test cases 
  cy.get(&quot;.testcasecheckbox&quot;)
    .click();
  
  
  cy.intercept(
    {
      method: &quot;GET&quot;,
      url: &quot;https://externalAPIurl&quot;,
    },
    {
      headers: {
        authorization:
          &quot;AABBXXYY&quot;,
      },
    },
    {
      statusCode: 200,
      body: [
        {
          status: 200,
          result: true,
          combination: [
            //same data...
          ],
        },
  
      ],
    }
  );
  
  cy.get(&quot;#run_button&quot;).click();
  
  });
  </code></pre>
  <p>Where am I wrong?</p>
  <p>I checked in postman, the URL, with Get method and Header-&gt; Authorization key with proper Authorization key value (as collected from network console Headers) giving correct response, but the cy.intercept is throwing error</p>
  <p>How to solve this?
  Whenever in a website we click a button, multiple external API s are visible in console-&gt; network. If I take any one of them -&gt; check the URL, method, header and getting the same response in postman as in the network console, I should be able to mock the same request URL.
  I tried the same when one single API is appearing in network console. It was fine. But when I select one among multiple the result is an error.</p>
  <p>Please note: I have included the header authorization, may be the format is wrong. But if I give or do not give the authorization, the result is the same error.</p>