title: Angular 7: Sending post request gives error 405 (Method not allowed)
body: <p>I have the CORS extension on Chrome and the GET request works fine but the POST request does not. I get the error "method not allowed" but since I have the CORS extension, according to the documentation, a POST request should work.</p>
  
  <p>I tried to use optional headers as mentioned in another topic but the error remains.</p>
  
  <p>I use this code:</p>
  
  <pre><code>send(id){
      let list = JSON.stringify(this.array)
      this.http.post(this.url + this.id, list)
           .subscribe(),
              error =&gt; console.log("Error: ", error)
      )
  } 
  </code></pre>
  
  <p>The error message in the browser console is:</p>
  
  <blockquote>
    <p>message:Http failure response for <a href="http://localhost:4000/" rel="nofollow noreferrer">http://localhost:4000/</a>...<br>
        name: "HttpErrorResponse"<br>
        ok: false<br>
        status: 405<br>
        statusText: "Method Not Allowed"<br></p>
  </blockquote>