title: Error when i send FromData to java - Angular 13
body: <p>applicationservice.ts.</p>
  <pre><code>aggiungiApplicazione(appForm: FormData): Observable&lt;Applicazione&gt; {
    return this.http.post&lt;Applicazione&gt;(`http://localhost:8080/Gestionale/api/applicazione/aggiunta`, appForm, {headers: { &quot;Content-Type&quot;: &quot;application/json&quot; }});
  }
  </code></pre>
  <p>component.ts</p>
  <pre><code>const appFormData = new FormData();
  
  Object.keys(this.appForm).map((key) =&gt; {
    appFormData.append(key, this.appForm[key].value);
    // console.log(appFormData);
  })
  
  
  _aggiungiApplicazione(appData: FormData) {
  this.applicazioneService.aggiungiApplicazione(appData).subscribe((app: Applicazione) =&gt; {
    console.log(app);
    timer(2000).toPromise().then(() =&gt; {
      this.display = false;
      this._getApplicazioni();
    })
  });
  </code></pre>
  <p>}</p>
  <p>And this is the Java Service</p>
  <pre><code>@POST
  @Path(&quot;aggiunta&quot;)
  @Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.APPLICATION_JSON)
  public Applicazione add(Applicazione a) {
      JpaDaoFactory.getDaoFactory().save(a);
      return a;
  }
  </code></pre>
  <p>And this is the error I get when I try to add the application.</p>
  <blockquote>
  <p><strong>ERROR</strong>
  <strong>Type Status</strong> Report</p>
  </blockquote>
  <blockquote>
  <p><strong>Message</strong> Bad Request</p>
  </blockquote>
  <blockquote>
  <p><strong>Description</strong> The server cannot or will not process the &gt;request due to something that is perceived to be a client &gt;error (e.g., malformed request syntax, invalid request &gt;message framing, or deceptive request routing).</p>
  </blockquote>
  <p>If I try to remove the header I go into error 415</p>