title: Getting 404 not found in localhost:4200
body: <p>I'm trying to pass datas from "<a href="http://localhost:8082/api/kanchiwork/" rel="nofollow noreferrer">http://localhost:8082/api/kanchiwork/</a>" to "<a href="http://localhost:4200/" rel="nofollow noreferrer">http://localhost:4200/</a>". My proxy.config.json file is :</p>
  
  <pre><code>    {
        "context": [
          "/api/**"
        ],
        "pathRewrite": {
          "^/api": ""
        },
        "ws": false,
        "target": "http://localhost:8082",
        "secure": false,
        "changeOrigin": true,
        "logLevel": "debug"
      }
    ]
  </code></pre>
  
  <p>and my service file is given below.</p>
  
  <pre><code>import { HttpClient } from '@angular/common/http';
  import { Observable } from 'rxjs';
  
  @Injectable({
    providedIn: 'root'
  })
  export class PeopleService {
  
    constructor(private http:HttpClient) { }
  
    fetchPeople(): Observable&lt;Object&gt;{
      return this.http.get('/api/kanchiwork/');
      //return this.http.get('assets/response.json');
    };
  
  }
  </code></pre>
  
  <p>. When I tried to pass the values am getting message as ""GET localhost:4200/api/kanchiwork 404 (Not Found)" in console. </p>