title: How to open new html page from axios request?
body: <p>I am sending a request to the server which is returning me HTML page, when I made a request through axios in the complete page is in response.data. How should i open this?</p>
  <pre><code>axios.post(&quot;/getEmployee&quot;)
      .then(response =&gt; {
       if (response.request.responseURL &amp;&amp; response.request.responseURL.includes(&quot;/login&quot;)) {
         window.location.href = response.request.responseURL;
       } 
       else{
               console.log(response.data)
               window.open(response.data)
       }
      })
      .catch(error =&gt; {
      console.log(error.response.data)
      })
  </code></pre>