title: Cross domain api call with post request in angular 2
body: <pre><code>return this.http.post(this._InstUrl, body, options)
                                 .map((res: Response) =&gt; {res.json() })
                                 .subscribe(
                                          (data) =&gt; {
                                              console.log(this.Result);
                                          },
                                          (error) =&gt; {
                                               console.log(error);
                                          });
  </code></pre>
  
  <p>When i execute above code, it didn't get work for me and showing below mentioned error.</p>
  
  <blockquote>
    <p>Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:55139" rel="nofollow noreferrer">http://localhost:55139</a>' is therefore not allowed access. The response had HTTP status code 405.</p>
  </blockquote>
  
  <p>Can anyone help me on this issue?</p>