title: I couldn't figure out why is the conncection is closed
body: <p>I'm posting data to the wordpress api but I got this problem of closed connection .. first time it was working but I dont know what happened</p>
  
  <pre><code>handleSignIn = () =&gt; {
          const post = {
              "email" : this.state.email,
              "password " : this.password
          }
          axios.post('http://api.piri.ai:3000/v1/public/login' , post)
              .then(res =&gt; {this.setState({status: res.data.status})  
              //window.location= '/wp';
              console.log(res.data)
          })
              .catch(e =&gt; {console.log(e.message) ; this.setState({status: false})});
  
  
      }
  </code></pre>
  
  <p>in the console log, I got this error </p>
  
  <p>Network Error
  xhr.js:166 OPTIONS <a href="https://api.piri.ai:3000/v1/public/login" rel="nofollow noreferrer">https://api.piri.ai:3000/v1/public/login</a> net::ERR_CONNECTION_CLOSED</p>