title: Angular http subscribe blocked by CORS policy
body: <p>I am sending form data to a api which is running in python flask. The form is in angular 11. When using httpclient the api is not accessible.</p>
  <pre><code>this.http.post('http://192.168.0.95:5001/login', formData).subscribe(
  
    (response) =&gt; console.log(response),
    (error) =&gt; console.log(error)
  )
  </code></pre>
  <p>But when i directly submit the form to that api its working.</p>
  <pre><code>&lt;form action =&quot;http://192.168.0.95:5001/login&quot;&gt;
  </code></pre>
  <p>I have updated the proxy.conf.json file as below</p>
  <pre><code>{
      &quot;/&quot;: {
          &quot;target&quot;: &quot;http://localhost:3000&quot;,
          &quot;secure&quot;: false,
          &quot;logLevel&quot;: &quot;debug&quot;
      }
  }
  </code></pre>
  <p>but its not working. Anyone please help with this</p>