title: Pass API Key to angular post
body: <p>I have a login endpoint that need to pass like this. The username and pwd as a formdata.</p>
  <p><a href="https://i.stack.imgur.com/z9528.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9528.png" alt="enter image description here" /></a></p>
  <p>auth.service.ts</p>
  <pre><code>
   login(data: User) {
      var formData: any = new FormData();
      formData.append(&quot;username&quot;, data.username);
      formData.append(&quot;pwd&quot;, data.pwd);
      let headers = new HttpHeaders().set('token', '123456');
      return this.http.post(API_URL, { headers: new HttpHeaders({'token': '123456'})},formData);
    }
  
  </code></pre>
  <p>How I pass the authorization api key? I am getting error 404</p>