title: How to login 2 websites at the same time? | how to login with wp REST API out of Wordpress site?
body: <p>I built 2 websites. One is Codeigniter(localhost/test) and other one is Wordpress(localhost/sample).
  If I login in the first site (e.g: localhost/test), there is no need to login in the second site again.
  So I want to login 2 websites at the same time within one login action.
  I tried as following. That is my code.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;    
      &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot;/&gt;
      &lt;head&gt;
          &lt;!-- Title --&gt;
          &lt;title&gt;Test&lt;/title&gt;
          &lt;!-- Required Meta Tags Always Come First --&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;form action=&quot;http://localhost/sample/wp-json/wp/v2/users&quot; method=&quot;post&quot;&gt;  //--&gt; target site URL
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label for=&quot;email&quot;&gt;Username:&lt;/label&gt;
                  &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;username&quot; placeholder=&quot;Enter username&quot; id=&quot;username&quot;&gt;
              &lt;/div&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label for=&quot;email&quot;&gt;Email address:&lt;/label&gt;
                  &lt;input type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;email&quot; placeholder=&quot;Enter email&quot; id=&quot;email&quot;&gt;
              &lt;/div&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label for=&quot;pwd&quot;&gt;Password:&lt;/label&gt;
                  &lt;input type=&quot;password&quot; class=&quot;form-control&quot; name=&quot;password&quot; placeholder=&quot;Enter password&quot; id=&quot;password&quot;&gt;
              &lt;/div&gt;
              &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit&lt;/button&gt;    
          &lt;/form&gt;        
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>If I click the submit, entered parameter transferred to the target site URL, and I got the following error.</p>
  <p><a href="https://i.stack.imgur.com/A4dg8.png" rel="nofollow noreferrer">Error Screenshot</a>
  <a href="https://i.stack.imgur.com/cj4EO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cj4EO.png" alt="enter image description here" /></a></p>
  <p>Target site URL(&quot;http://localhost/sample/wp-json/wp/v2/users&quot;) is Wordpress REST API.
  Is it possible to proceed this ?</p>