title: Quarkus Http Cors accept JSON
body: <p>How should I configure the cors policy so it accepts json?</p>
  
  <p>Access to XMLHttpRequest at '<a href="http://localhost:8080/todo/savePerson" rel="nofollow noreferrer">http://localhost:8080/todo/savePerson</a>' from origin '<a href="http://localhost:4200" rel="nofollow noreferrer">http://localhost:4200</a>' has been blocked by CORS policy: </p>
  
  <blockquote>
    <p>Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.</p>
  </blockquote>
  
  <p><strong>application.properties:</strong></p>
  
  <pre><code>quarkus.http.cors=true
  quarkus.http.cors.origins=http://localhost:4200
  quarkus.http.cors.headers=accept, origin, authorization, content-type, x-requested-with
  quarkus.http.cors.methods=GET,POST,OPTIONS
  </code></pre>